From 536925ccf8c266f41fe286261aba59e84d0d3ecd Mon Sep 17 00:00:00 2001 From: jiblett1000 Date: Fri, 21 Oct 2022 01:01:23 -0700 Subject: [PATCH] fix route comparison for hashes --- packages/nuxt/src/pages/runtime/router.options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }