 Rank: Fanatic
Joined: 7/25/2006 Posts: 433 Location: Silkeborg, Denmark
|
|
Rank: Enthusiast
Joined: 1/7/2008 Posts: 39
|
Hi, Try this code: string url = umbraco.library.NiceUrl(Node.GetCurrent().Id);
|
 Rank: Fanatic
Joined: 7/25/2006 Posts: 433 Location: Silkeborg, Denmark
|
Thanks! Here's the final piece of code I ended up using (In VB): Code:Dim UrlVerify As String = "http://" & Request.Url.Host & umbraco.library.NiceUrl(umbraco.presentation.nodeFactory.Node.GetCurrent().Id) /SoerenS Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
|
 Rank: Addict
Joined: 7/19/2006 Posts: 815 Location: Århus, Denmark
|
Just watch out if you change Umbraco settings to enforce domain names. Then the niceUrl include domains in the string it returns...
|