Copied to clipboard

Flag this post as spam?

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


  • James Meredith 18 posts 91 karma points
    May 14, 2020 @ 15:35
    James Meredith
    0

    Getting all possible URLs for a node in Umbraco 8

    Hey all,

    Wanted to know if there's a way to get all the possible URLs for a node. I'm trying to allow 2 "sites" (e.g. example.com/uk and example.com/us) to use the same content, news for example, without losing the site path (e.g example.com/uk/news and example.com/us/news). I added the hostnames and it works well but if I try and get the url from the node it just returns the first URL in the info section (e.g. example.com/uk/news).

    I wanted to get the full list so I can choose which one to display.

    Any help is much appreciated :)

    Cheers,

    James

  • James Meredith 18 posts 91 karma points
    May 15, 2020 @ 09:07
    James Meredith
    0

    I achieved this using regex to replace the country part of the URL :)

    James

Please Sign in or register to post replies

Write your reply to:

Draft