Iron router's pathFor helper and variable query argument


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:


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:


But I need to prefix the value with key=…

What could I be missing here?

Thanks in advance,