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
Routes are matched correctly only if query parameters are specified in the right order.
var route = new Route('/?a=:a&b:b'); var result = route.match('/?b=1&a=2'); assert(result);
Would it possible to sort query params when route is parsed and when url is matched to avoid this problem?
The text was updated successfully, but these errors were encountered:
Yeah, this is not the behaviour I would expect from "named parameters".
Sorry, something went wrong.
👍
Yeah this is super odd. I also notice if i do
let route = new Route('/users/:id(?foo=:foo)') route.match('/users/123?foo=lol&rofl=true') // output: { id: '123', foo: 'lol&rofl=true' }
No branches or pull requests
Routes are matched correctly only if query parameters are specified in the right order.
Would it possible to sort query params when route is parsed and when url is matched to avoid this problem?
The text was updated successfully, but these errors were encountered: