Closed escaroda closed 7 years ago
I'm trying to pass parameter through query but Iron Router don't see it and get undefined
undefined
Here is this string: one two three (12,34) = 360 +2%+250 After encodeURIComponent() it looks like this:
one two three (12,34) = 360 +2%+250
encodeURIComponent()
one%20two%20three%20(12%2C34)%20%3D%20360%20%2B2%25%2B250
You can test it easily. Open any meteor project with iron router and add to link:
?notes=one%20two%20three%20(12%2C34)%20%3D%20360%20%2B2%25%2B250
then inside console run Router.current().getParams() and you'll see query.notes = undefined
Router.current().getParams()
query.notes = undefined
Any idea guys?
@escaroda it's choking on %25 which is the encoded '%' character
%25
i found this existing issue: https://github.com/iron-meteor/iron-router/issues/1254
testing out a fix now
I'm trying to pass parameter through query but Iron Router don't see it and get
undefined
Here is this string:
one two three (12,34) = 360 +2%+250
AfterencodeURIComponent()
it looks like this:You can test it easily. Open any meteor project with iron router and add to link:
then inside console run
Router.current().getParams()
and you'll seequery.notes = undefined