Skip to content

Commit

Permalink
fix(nuxt): routerBehavior comparison for hash block (nuxt#8383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiblett1000 authored 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
Original file line number Diff line number Diff line change
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.