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.
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
I achieved this using regex to replace the country part of the URL :)
James
is working on a reply...