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

URI malformed with dynamic route #2786

Closed
yaniv51 opened this issue May 29, 2019 · 3 comments
Closed

URI malformed with dynamic route #2786

yaniv51 opened this issue May 29, 2019 · 3 comments

Comments

@yaniv51
Copy link

yaniv51 commented May 29, 2019

Version

3.0.3

Reproduction link

https://codesandbox.io/s/mw8di

Steps to reproduce

Open:
https://mw8di.codesandbox.io/#/test/error/100%

What is expected?

Page with 'Error' text

What is actually happening?

URI malformed error page


I found this error while using Nuxt.js, related bug:
nuxt/nuxt#5827

@posva
Copy link
Member

posva commented May 29, 2019

mw8di.codesandbox.io/#/test/error/100% is not a legal URL, the % character must be encoded (it's %25, try encodeURI), this is a browser spec

@posva posva closed this as completed May 29, 2019
@yaniv51
Copy link
Author

yaniv51 commented May 29, 2019

Did you checked the related issue?
https://quzpq.sse.codesandbox.io/90%25
The request is fully encoded but still there is an exception in vue-router.

The only way I think it might be is that there is an issue with Nuxt.js and while handle request, nuxt is decode path (-> instead of 90%25 we get 90%) and the vue-router try to decode it again -> the exception raised.

@posva
Copy link
Member

posva commented May 29, 2019

Please, see #2725

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

No branches or pull requests

2 participants