iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

how to get iron:router's datacontext to recognise urls like my/long/path/name? #1498

Open 7ammer opened 8 years ago

7ammer commented 8 years ago

I'm trying to work out how to make iron:router's datacontext url work over more than one path deep ie:

{path: ":myfield"} only matches the first url in this collection list:

hello
hello/you
im/a/longer/url

I know I could just bunch up a load of datacontext's together like so.. /:one/:two but I would like my users to be able to write the slug path themselves so they can have the ability to make parent/child pages in a CMS I'm trying to build themselves.

Thanks for your time :)