diff --git a/docs/src/.vuepress/enhanceApp.js b/docs/src/.vuepress/enhanceApp.js index 2d3e958f..f672237d 100644 --- a/docs/src/.vuepress/enhanceApp.js +++ b/docs/src/.vuepress/enhanceApp.js @@ -42,8 +42,8 @@ export default ({ } if (redirectPath) { - // Preserve the hash in the URL - next({ path: redirectPath, hash: to.hash }); + // Use router.push to ensure Vue Router handles the navigation properly + router.push({ path: redirectPath, hash: to.hash }); } else { next(); // Proceed to the requested page if no redirect is found }