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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -