Extracting Last Part of URL? Absolute Vs. Relative Links
Is there a method in Umbraco for getting JUST the page name part of the URL when NiceUrl() gives you back an absolute URL? That's happening for me on a bilingual site I created by copying one site to another using relatednode api. Now the original one returns the full url (including domain name) whereas the copy returns as the relative url only. How can I make these the same?
Extracting Last Part of URL? Absolute Vs. Relative Links
Is there a method in Umbraco for getting JUST the page name part of the URL when NiceUrl() gives you back an absolute URL? That's happening for me on a bilingual site I created by copying one site to another using relatednode api. Now the original one returns the full url (including domain name) whereas the copy returns as the relative url only. How can I make these the same?
Thanks,
Garrett
Hi
You could try getting @nodeName.
But it sounds like you need to setup "Manage hostnames" on the new site. Right click on the sites rootnode.
Good luck
Hi Garrett (+ Dan),
I would suggest you use the @urlName attribute then - it's always (to my knowledge) in sync with the path you get back from NiceUrl().
/Chriztian
true, my bad :-)
is working on a reply...