diff --git a/packages/nuxt/src/pages/runtime/router.options.ts b/packages/nuxt/src/pages/runtime/router.options.ts index 6d510272f6a..ce63f731aca 100644 --- a/packages/nuxt/src/pages/runtime/router.options.ts +++ b/packages/nuxt/src/pages/runtime/router.options.ts @@ -21,7 +21,7 @@ export default { } // 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 } }