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
Error in console when I'm opening the website with double slashes at the end of URL #7257
Comments
I have the same issue on all my Nuxt.js projects |
/cc @Atinux as you are the scrollBehaviour specialist (see this comment) |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
This issue still occurs on |
Version
v2.12.2
Reproduction link
https://igora-dev-blog.herokuapp.com///
Steps to reproduce
Open an url with double slashes in the end
What is expected ?
Redirect to url without trailing slashes
What is actually happening?
When I'm opening the website with double slashes in URL I'm getting error in the console.
Error:
DOMException: Failed to execute 'replaceState' on 'History': A history state object with URL 'https:' cannot be created in a document with origin 'https://example.com' and URL 'https://example.com///'
Additional comments?
I don't understand why it's happening, how can I fix it?
The text was updated successfully, but these errors were encountered: