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

fix(nuxt): routerBehavior comparison for hash block #8383

Merged
merged 1 commit into from Oct 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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