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
router.base is sanitized with trailing slash which does not match with path wihout trailing slash (spa mode only) #6744
Comments
|
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
|
Hi, Is there a workaround for this? I noticed that the merge request is still open. Thank you. |
|
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
Version
v2.10.2
Reproduction link
https://codesandbox.io/s/example-hello-world-no8hn
Steps to reproduce
Set nuxt.config
Open localhost:3000/app
What is expected ?
index.vuefile from pages dirWhat is actually happening?
404 This page could not be found
Additional comments?
Works fine if open localhost:3000/app/
Works fine in universal mode, but logs ssr error (The client-side rendered virtual DOM tree is not matching...)
It's happening because of
getLocationfunction (nuxt.js/packages/vue-app/template/utils.js
Line 267 in 701f2d0
router.baseis sanitizing with trailing slash (https://github.com/nuxt/nuxt.js/blob/dev/packages/config/src/options.js#L93)So I propose change
getLocationfunctionThe text was updated successfully, but these errors were encountered: