Meteor: Iron.Router Catch All (Will match the rest of the URI) -


is possible define iron.router route parameter match rest of uri?

for example

router.route('results', {     path: '/test/:domain' }); 

this match on entries like

  • /test/hello
  • /test/hello.com

what need, match on entries such as

  • /test/hello.com/about
  • /test/hello.com/about?param=3

thoughts?

figured out how!

in case path be

router.route('results', {     path: '/test/(.*)' }); 

to access trailing info, access parameter @ index 0

this.params[0] 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -