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
Post a Comment