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

URL query parameters getting encoded twice #378

Closed
decademoon opened this issue Feb 21, 2016 · 1 comment
Closed

URL query parameters getting encoded twice #378

decademoon opened this issue Feb 21, 2016 · 1 comment
Labels

Comments

@decademoon
Copy link
Contributor

If I perform this:

this.$router.go({ name: 'a', query: { b: '/c' } })

then the URL in the address bar becomes /a?b=%252Fc instead of /a?b=%2Fc.

this.$route.query.b will be '%2Fc' instead of '/c'.


It seems that each query parameter is being encodeURIComponent-ed, combined into the full path, then the full path is encodeURI-ed. Shouldn't the URL be encodeURI-ed before the query string is appended?

@GuillaumeLeclerc
Copy link

Do you have any idea when it will be integrated on the npm registry ?

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

No branches or pull requests

3 participants