I'd like to obtain the Umbraco URL for a particular document. It seems, in the source, that a bunch of different things are done to build up this URL. Is there a means of cleanly obtaining the URL that corresponds to a particular node/document as might be used to generate links without hardcoding their target?
Get URL for Umbraco Node
Hi all,
I'd like to obtain the Umbraco URL for a particular document. It seems, in the source, that a bunch of different things are done to build up this URL. Is there a means of cleanly obtaining the URL that corresponds to a particular node/document as might be used to generate links without hardcoding their target?
Thanks!
Hi there,
what kind of details do you have on the doc you want to obtain the URL to?
If you have the Node ID you can use umbraco.library.NiceUrl(ID);
Best regards,
SoerenS
Soeren -- that's precisely the method I was looking for. Thanks so much!
is working on a reply...