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 Params decode #57

Closed
sumohammed opened this issue Jul 15, 2019 · 2 comments
Closed

Url Params decode #57

sumohammed opened this issue Jul 15, 2019 · 2 comments

Comments

@sumohammed
Copy link

sumohammed commented Jul 15, 2019

Hello,

Been having some issues with params values in the sense that with long text params the space symbols still stays in the props value extracted and i have to use decodeURIComponent.

Is there anyway props value could be formatted by default?

@molefrog
Copy link
Owner

Hi,
@sumohammed is it possible to provide an example? It would help a lot!

@molefrog
Copy link
Owner

@sumohammed Ok, I think I understand the problem:
The url /app/:name with /app/some name gives you { "name": "some%20name" }.

Our current implementation does not support this behaviour, but you can easily extend the location hook to add a support for it before the new version is released:

https://codesandbox.io/s/wouter-decodeuricomponent-tfi2g

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