Generating SEO Friendly Url for ContentReference

Vote:
 

Hi!

I have a catalog node (category node) in commerce that i want to generate a firendly url to. I want to use the string saved on the Url property. How is that done?

#88119
Jul 02, 2014 12:18
Vote:
 
var urlResolver = ServiceLocator.Current.GetInstance();
var pageUrl = urlResolver.GetUrl(YouContentLink);
var uriBuilder = new UriBuilder(SiteDefinition.Current.SiteUrl);
uriBuilder.Path = pageUrl;

uriBuilder.ToString();


Something like this?

#88121
Jul 02, 2014 12:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.