diff --git a/packages/nuxt/src/pages/module.ts b/packages/nuxt/src/pages/module.ts index b5b7d1b0ac..cfb390f1d6 100644 --- a/packages/nuxt/src/pages/module.ts +++ b/packages/nuxt/src/pages/module.ts @@ -642,7 +642,7 @@ if (import.meta.hot) { for (const route of routes) { router.addRoute(route) } - router.replace('') + router.replace(router.currentRoute.value.fullPath) } if (routes && 'then' in routes) { routes.then(addRoutes)