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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.