Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emitRouteChunkError: 'reload' redirects incorrectly with hashMode: true #19182

Closed
sky-code opened this issue Feb 21, 2023 · 0 comments · Fixed by #19086
Closed

emitRouteChunkError: 'reload' redirects incorrectly with hashMode: true #19182

sky-code opened this issue Feb 21, 2023 · 0 comments · Fixed by #19086

Comments

@sky-code
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v19.5.0
  • Nuxt Version: 3.2.2
  • Nitro Version: 2.2.2
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: ssr, router, experimental, components, modules, css, runtimeConfig, vite, imports, vue
  • Runtime Modules: @pinia/nuxt@0.4.6, bootstrap-vue-next/nuxt
  • Build Modules: -

Reproduction

In description.

Describe the bug

set router: { options: { hashMode: true }, }, make a build with nuxt generate, deploy .output/public to any static hosting, open some page, make changes to another page, rebuild and re-deploy, and then try to navigate to another page with changes from already opened page from previous build, you'll have redirect without # which in my case lead to 404 error.
Path saved in local storage nuxt:reload does not contains # and NUXT_APP_BASE_URL prefix.
Instead of redirect to https://example.com/app/#/directory/page I got redirected to https://example.com/directory/page

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants