Developer forum

Forum » CMS - Standard features » Friendly URL using API

Friendly URL using API

Adrian Ursu
Reply

Hi Guys,

I am trying to display a friendly URL in a RSS feed that's generated with an ItemPublisher.

I am using Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl ({Unfriendly_URL}) but I keep getting the same UnfriendlyURL.

Is there any method to get a friendly URL from the Unfriendly one?

Thanks,

Adrian

 


Replies

 
Nicolai Høeg Pedersen
Reply

That is the way. What do you call GetFriendlyUrl with? What string do you provide as the unfriendly?

 
Adrian Ursu
Reply

Hi Nicolai,

http://www.aperta.ro/Default.aspx?Id=221

I tried both with and without the domain name.

This is the page: http://austral.dotfusion.ro/Default.aspx?ID=191&Purge=True

Thanks,

Adrian

P.S. solution is 8.7.2.2. I might be mistaken but it might have worked in a previous version

 
Nicolai Høeg Pedersen
Reply

Call it with Default.aspx?ID=123 - you write Id (capital I and a small d). I think that could be the issue.

 
Nicolai Høeg Pedersen
Reply

There is, by the way, a checkbox in Customized URLs in MC that will do this for you... Replace internal links or somehting like that.

 

You must be logged in to post in the forum