flow router - Meteor - Flowrouter: generic vs variable route -
i want display posts different cities, defined cityid:  
flowrouter.route("/:cityid", {    name: 'postlist',    action: function() {       console.log(flowrouter.getparam("cityid"));       return blazelayout.render('mainlayout', {         top: 'header',         body: 'postlist'       });     } }); alongside of course have generic routes 'admin', 'signup' , on.
 when go /signup, postlist route gets activated, treating 'signup' word city id, , 'signup' logged in console.
 defining route flowrouter.route("/postlist/:cityid") not option.
actually, need control route definition order.
 define /signup route before generic one: /:cityid
Comments
Post a Comment