diff --git a/projects/WebMVC/wwwroot/js/route.js b/projects/WebMVC/wwwroot/js/route.js index a9e1a383..fcd87b20 100644 --- a/projects/WebMVC/wwwroot/js/route.js +++ b/projects/WebMVC/wwwroot/js/route.js @@ -31,7 +31,7 @@ router.beforeEach((to, from, next) => { } else { if (to.path === from.path) { - router.push({ path: '/router/shared/redirect.html', query: { url: to.fullUrl } }) + router.push({ path: '/router/shared/redirect.html', query: { url: to.fullPath } }) } else { next(); diff --git a/projects/WebMVC/wwwroot/router/shared/redirect.html b/projects/WebMVC/wwwroot/router/shared/redirect.html index 4e513159..8310b8dc 100644 --- a/projects/WebMVC/wwwroot/router/shared/redirect.html +++ b/projects/WebMVC/wwwroot/router/shared/redirect.html @@ -4,8 +4,8 @@