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

Query string ends up in the last matching parameter's value #30

Open
Tracked by #28
gameldar opened this issue Aug 13, 2019 · 0 comments
Open
Tracked by #28

Query string ends up in the last matching parameter's value #30

gameldar opened this issue Aug 13, 2019 · 0 comments

Comments

@gameldar
Copy link

When parsing a URL if the path contains a query string at the end e.g. /api/something?a=b&c=d given a rule of /api/:what the value of the query string ends up being appended to parameter - in this example match.params["what"] == "something?a=b&c=d".

It would make sense to introduce the concept of the query string at least and remove it from the last match entry when producing the parameter map.

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

Successfully merging a pull request may close this issue.

1 participant