Meteor Iron Router – Multiple Optional Parameters

Iron RouterMeteor

 

Router.route(‘/search/:location?/:keyword?’)

Add an interogration mark after the parameter which you designate as optional.

It’s that simple.