Copied to clipboard

Flag this post as spam?

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


  • Accusoft 58 posts 109 karma points
    Aug 24, 2012 @ 18:21
    Accusoft
    0

    Overriding {LocalLink}

    I noticed when using the editor to link to other content, it generates a URL similar to:

     /{localLink:1178}

    It then looks up the URL when it renders the page and replaces it with the appropriate URL.  Is there some way to override this?  I'd like to replace all .aspx extensions only on the page render.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 24, 2012 @ 21:40
    Jan Skovgaard
    0

    Hi Chris

    If I understand you correctly you want to use extension less url on all of your site?

    Then it should be a matter of setting umbracoUseDirectoryUrls to true in the web.config.

    Hope this helps - otherwise try giving some more detail :)

    /Jan

  • Accusoft 58 posts 109 karma points
    Aug 24, 2012 @ 21:56
    Accusoft
    0

    Hi Jan,

    Essentially, I'm rewriting all the ASPX urls to HTML urls.  I've implemented this fine in my Razor scripts, but {localLink} is handled differently.  I just want to inject some code before it renders the full URL, replacing the ".aspx" with ".html"

     

  • Accusoft 58 posts 109 karma points
    Sep 17, 2012 @ 18:53
    Accusoft
    0

    Any ideas on this one?

Please Sign in or register to post replies

Write your reply to:

Draft