How to get the query parameters in Iron-router?

Pat picture Pat · Apr 14, 2014 · Viewed 23.7k times · Source

I am trying to get the query parameters in the url.

There doesn't seem to be an easy way to do this...

which leaves me with the feeling that I must have missed a something in the doc.

Answer

Flying Fisher picture Flying Fisher · Jun 20, 2014

Just call

Router.current().params //params is the dict you wanted

in Iron Router 7.1+