Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): routerBehavior comparison for hash block (#8383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiblett1000 committed Oct 21, 2022
1 parent 69a6a86 commit a0a59e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/pages/runtime/router.options.ts
Expand Up @@ -21,7 +21,7 @@ export default <RouterConfig> {
}

// Hash routes on the same page, no page hook is fired so resolve here
if (to.path !== from.path) {
if (to.path === from.path) {
if (from.hash && !to.hash) {
return { left: 0, top: 0 }
}
Expand Down

0 comments on commit a0a59e2

Please sign in to comment.