Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael 125 posts 409 karma points
    Apr 13, 2016 @ 09:46
    Michael
    0

    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

  • Shuja 3 posts 33 karma points
    Apr 21, 2016 @ 00:56
    Shuja
    0

    Hi Michael,

    Did you try adding '~/article/item' in the umbracoReservedPaths key in web.config?

    Cheers. Shuja

  • 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.

Please Sign in or register to post replies