Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have problem with adding new route.
My umbraco url is: /article/type/category/item.
I would like to use shorter url like this: /article/item
My rote is:
RouteTable.Routes.MapRoute("ArticleRoute", "type/{action}", new { controller = "item", action = "Index" });
But I receive Page not found.
Who can help me with this?
Thanks, Mike
Hi Michael,
Did you try adding '~/article/item' in the umbracoReservedPaths key in web.config?
Cheers. Shuja
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom Route problem
Hi,
I have problem with adding new route.
My umbraco url is: /article/type/category/item.
I would like to use shorter url like this: /article/item
My rote is:
RouteTable.Routes.MapRoute("ArticleRoute", "type/{action}", new { controller = "item", action = "Index" });
But I receive Page not found.
Who can help me with this?
Thanks, Mike
Hi Michael,
Did you try adding '~/article/item' in the umbracoReservedPaths key in web.config?
Cheers. Shuja
is working on a reply...