We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.1.6
https://lyaskovec.github.io/tests/
There are two cases where you can see issue with double decoding of URL: case 1:
case2:
It should show a correct page
I got "URIError: URI malformed" error
The text was updated successfully, but these errors were encountered:
I opened a PR to fix that issue. Can you check it please ? #3213
Sorry, something went wrong.
Friendly heads up that we're running into this issue over here in GitLab.
https://gitlab.com/gitlab-org/gitlab/-/issues/233878#note_401932109
Removing decodeURI from getLocation fixes it, but this function seems to be used in a lot of places, so I'm not sure what the consequences of this is 🤔
decodeURI
getLocation
--- node_modules/vue-router/dist/vue-router.esm.orig.js 2020-08-25 13:49:56.000000000 -0500 +++ node_modules/vue-router/dist/vue-router.esm.js 2020-08-25 13:46:16.000000000 -0500 @@ -2207,7 +2207,7 @@ }(History)); function getLocation (base) { - var path = decodeURI(window.location.pathname); + var path = window.location.pathname; if (base && path.indexOf(base) === 0) { path = path.slice(base.length); }
Successfully merging a pull request may close this issue.
Version
3.1.6
Reproduction link
https://lyaskovec.github.io/tests/
Steps to reproduce
There are two cases where you can see issue with double decoding of URL:
case 1:
case2:
What is expected?
It should show a correct page
What is actually happening?
I got "URIError: URI malformed" error
The text was updated successfully, but these errors were encountered: