i've been searching for a friendly url method in umbraco, the one that would hook into the rules set in the 'urlReplacing' section of the 'umbracoSettings.config'?
the reason i'm searching is that i want to create some safe urls based on another field on the doctype for the url alias but i want them to adhear to the same rules that umbraco sets for generating urls!
is there a friendly url method in umbraco core?
chaps,
i've been searching for a friendly url method in umbraco, the one that would hook into the rules set in the 'urlReplacing' section of the 'umbracoSettings.config'?
the reason i'm searching is that i want to create some safe urls based on another field on the doctype for the url alias but i want them to adhear to the same rules that umbraco sets for generating urls!
can anyone point me in the right direction?
cheers,
jake
Hello,
There is an extension method called
ToUrlSegment
in the Umbraco.Core namespace. Is that what you're looking for?So you could do
url.ToUrlSerment();
Jeroen
1st class sir, that's exactly what i was looking for ;)
cheers jeroen, i owe you one!
is working on a reply...