URL aliases in Meteor


#1

Has anybody come up with a way to provide URL aliases for dynamic content? I am currently (still) using Iron Router and am following the usual pattern of defining my routes with a slug determined by a mongo _id.

Lets say I have /business/view/:id as my route, how could I implement /business/v/business_name without needing to rewrite/duplicate my entire logic? Also, if a business had an alias, and I access /business/view/:id, the browser should display /business/v/business_name instead

Are there any patterns out there that allow dealing with document.location like that?