Iron Router - Multiple Optional Parameters


Hi All,

I’m trying to figure out how to properly create a multiple-parameter (optional) search. Here is the example route I have created:


This works as intended, but the one caveat is if someone elects to not search a location, then it will look like http://app/search//keyword. In PHP, I would have simply done l=location&k=keyword. Any recommendations?