asp.net-mvc routing how to map Home/Action/id to just action/id ?

Posted by Omu on Stack Overflow See other posts from Stack Overflow or by Omu
Published on 2010-05-14T06:17:20Z Indexed on 2010/05/14 6:24 UTC
Read the original article Hit count: 204

Filed under:
|

At the moment I have just this route defined

 routes.MapRoute(
                "Default",                                                
                "{controller}/{action}/{id}",                           
                new { controller = "Home", action = "Index", id = "" } 
                );

I want to map the /Home/Action1/id to just /Action1/id anybody knows how ?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routing