Iron router's pathFor helper and variable query argument


#1

Hi everyone,

I’m trying to generate a path for a route and passing a variable query argument. The result I must have is something like:

/somewhere/something?key=value

Where value is dynamic. My current helper looks like:

{{pathFor route='routeName' query='key=_id'}}

But _id is not interpolated. If I do:

{{pathFor route='routeName' query=_id}}

The generated URL is:

/somewhere/something?value

But I need to prefix the value with key=…

What could I be missing here?

Thanks in advance,
Fabian