meteor - Iron:router "globbing" isn't working -


i want able match paths this: /path/anything/goes/here/and/can/be/an/arbitrarily/long/path.

so tried of following:

router.route('/path/*', function(){     this.render('home'); }); 

i tried path: '/path/:something(*)' , tried specifying path in second argument options object router.route: {path: '/path/*', action:myactionfunction} along action function. tried using router.map instead of router.route, prescribed in both of following:

https://gentlenode.com/journal/meteor-11-iron-router-cheatsheet/18

http://www.manuel-schoebel.com/blog/iron-router-tutorial

but still, going /path/anything/goes/here doesn't work. takes me default iron:router error page:

oops, looks there's no route on client or server url: "http... localhost:1710... /path/this/should/work/according/to/the/above/links."

any appreciated, thanks.

try

'/(.*)'

or

'/path/(.*)'

if url domain.com/path/

i serve routes '/(.*)' via on collection of documents this.params

if need routes prior catchall put catchall route in meteor.startup , have finely grained defined routes prior in router file client side.

hope helps you.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -