Copied to clipboard

Flag this post as spam?

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


  • Kristian Kjær 6 posts 56 karma points
    Apr 04, 2013 @ 15:19
    Kristian Kjær
    0

    NiceUrl in MVC-Route way in Umbraco 6.xx?

    Hello!

    • Umbraco 6.0.3
    • MVC4

    I'm trying to figure out how to generate a NiceUrl to any node, in the MVC route way. Here's some examples:

    Should be:

    Do I have to program my own route somehow?

  • Kristian Kjær 6 posts 56 karma points
    Apr 04, 2013 @ 18:42
    Kristian Kjær
    0

    I have found out that changing umbracoUseDirectoryUrls to true, in the Web.config, like so:

     

    <add key="umbracoUseDirectoryUrls" value="true" />

     

    Removes the .aspx extension in NiceUrls.

     

    I am sorry for the trouble - I'm new to Umbraco CMS, but I keep learning ;-)

  • 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