-
Notifications
You must be signed in to change notification settings - Fork 412
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
Multiple query parameters with same key aren't handled properly #1146
Comments
Hey @bradvogel this is expected behavior, you need to pass the query params like |
That isn't how the browser works though. The following form:
will submit to the url: |
Just rename the field names to |
Yes, I see that's a workaround, but this is still a bug. The router should support arbitrarily named multiple parameters, as the spec allows. |
I wouldn't say it's a bug. The router/whatever can choose to handle them however they wish and the convention of automatically coercing field names with square brackets into arrays is quite common and it makes handling things much less complicated. I know that Rails (edit: not sure about Django) and PHP do the same thing. |
Here's the issue @tmeasday opened with some reasoning behind the choice iron-meteor/iron-url#1 |
Ok, thanks for the help. I filed iron-meteor/iron-url#8 as a feature request. Closing this. Thanks! |
Specify this route in your code:
Now load: localhost:3000/testroute?param=1¶m=2
Expected result in console:
Actual result in console:
The text was updated successfully, but these errors were encountered: