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:01
    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?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 04, 2013 @ 23:14
    Jan Skovgaard
    0

    Hi Kristian

    In the web.config you should simply set this app key to true <add key="umbracoUseDirectoryUrls" value="false" />

    This should work.

    /Jan

  • Charles Afford 1163 posts 1709 karma points
    Apr 04, 2013 @ 23:16
    Charles Afford
    0

    Hello :).  Could you give  me a bit more information here?  What language are you using?  Razor?  is this in a view or partial?

    what do you want the final thing to look like?  Do you mean?  <a href="@node.niceurl">@node.name</a>

    Thanks  Charlie :)

Please Sign in or register to post replies

Write your reply to:

Draft