Writing a custom aspnet mvc action without an action

Posted by Toran Billups on Stack Overflow See other posts from Stack Overflow or by Toran Billups
Published on 2010-06-01T22:22:04Z Indexed on 2010/06/01 22:53 UTC
Read the original article Hit count: 242

Filed under:
|

I'm looking to write a custom route that would allow the following

http://localhost/blog/tags/foo

Currently this is what actually works

http://localhost/tags/Index/nhibernate

I've tried the following with no success - any help would be appreciated

routes.MapRoute( "Tags", "{controller}/{id}", new { Controller = "Tags", action = "Index", id = UrlParameter.Optional } );

routes.MapRoute( "Tags", "blog/{controller}/{id}", new { Controller = "Tags", action = "Index", id = "" } );

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routing