Hi,
I have switched from asp.net mvc 1.0 to 2.0
My actionlinks:
<%=Html.ActionLink("Add bla", "addbla", new { id = Model.Id })%>
now produce urls like this:
addbla/500
rather than:
addbla/?Id=5008
does this have to do with the routing:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
How can I restore the old behaviour?
Thanks.
Christian