I note this intriguing bit in ASP.NET MVC:
routes.IgnoreRoute('{resource}.axd/{*pathInfo}');
I’d like to map {*pathInfo} into a route.
Something like:
routes.MapRoute( 'area/{*pathInfo}', '{controller}/{action}/{id}',parameters new { controller = 'Area', action = 'Index', id = ??? } );
but how do I pass in the variable ‘foo/bar/rab/oof’ from mydomain.com/area/foo/bar/rab/oof? Either passing the entire bit as a string or as a collection would be fine with me.
Thanks!
Which MVC version are you using? The route name should be the first parameter to MapRoute() as I remember in MCV Beta. Anyway, given your goal of capturing the path, I would do s/t like:
And in the Area controller: