Skip to content

Commit

Permalink
fix: fixed routing.... again
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobinstein committed Sep 5, 2024
1 parent 6dc81a1 commit 5fb5b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5fb5b83

Please sign in to comment.