kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 193 forks source link

getQueryParam returns undefined #617

Closed joetidee closed 8 years ago

joetidee commented 8 years ago

I am using this method to get the value of a query parameter:

FlowRouter.getQueryParam("s")

For a url such as http://someurl.com/app?s=123, the above code returns '123'. However, if the url is http://someurl.com/app?s=123#someid the above code returns 'undefined'.

The url change is instigated by clicking a bootstrap tab. This is importnat to mentino because if I simply type the full url in the browser and hit enter the getQueryParam() function returns the correct value.

How to I get the value of s in these circumstances?

(Using Flowrouter 2.11.0, Meteor 1.3)

joetidee commented 8 years ago

This is more related clicking a disabled bootstrap tab.