Copied to clipboard

Flag this post as spam?

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


  • K.Garrein 143 posts 514 karma points
    1 week ago
    K.Garrein
    0

    Customizing LocalLink internal links?

    Hey.

    Is it possible to customize how Umbraco renders internal links. In the RTE they look like "/{localLink:1592}".

    On the website when displaying the content, the links get changed to their respective document. However, we need to add an extra URL part in front of the URL's.

    For example /my/url/path/ needs to change to /fr/my/url/path/

    Is this feasible somehow?

    Thanks.

  • David Challener 44 posts 215 karma points
    1 week ago
    David Challener
    0

    Hi,

    I've just tried this and it looks to work. If you add your language under culture & hostnames.

    You can put language specific domains in here so you might have my.custom.dom/fr and set that on your root node. In theory, when the page links are rewritten this would be taken into account!

    Many thanks, David

  • K.Garrein 143 posts 514 karma points
    1 week ago
    K.Garrein
    0

    I tried your suggestion, but it doesn't seem to work in our case.

    There must be some code in Umbraco that does the actual LocalLink to actual content URL conversion? Can't it be overridden somehow?

    K.

  • David Challener 44 posts 215 karma points
    1 week ago
    David Challener
    0

    Maybe I'm misunderstanding what you're trying to do.

    If the content itself needs to live at a different URL then you may be able to achieve this with a URL provider.

    https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/

    Many thanks, David

Please Sign in or register to post replies

Write your reply to:

Draft