I have a no-limit custom route that generates a Restful URL with ActionLink.
Route -
routes.MapRoute(
"Blog",
"Blog/{d}/{m}/{y}",
new { controller = "Blog", action = "Retrieve" }
Creates -
http:
From -
<%=Html.ActionLink("Blog Entry - 12/01/2010", "Retrieve", "Blog", new { d = 12, m = 01, y = 2010 }, null)%>
If I add such restrictions.
routes.MapRoute(
"Blog",
"Blog/{d}/{m}/{y}",
new { controller = "Blog", action = "Retrieve" },
new { d = @"\d{2}", m = @"\d{2}", y = @"\d{4}" }
It generates -
http:
Additional information: it is added to the user route.
Any ideas? Greetings
source
share