Developer forum

Forum » CMS - Standard features » PrettyURLs from website settings

PrettyURLs from website settings

Mikkel Ulstrup
Reply

Hi,

 

When getting a link from a setting in an item, the returned URL is "Default.aspx?id=xxx". If we put it into an href and use double quotes we get a prettyURL instead.

I guess this is some sort of dw-magic :)

 

Is there a way to allways get the prettyURL? - In my case, I have to store the url in a data-attribute, and I would very much like the prettyURL instead of the ugly one.

 

Kind regards

Mikkel Ulstrup


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Mikkel

Have a look at this thread:

http://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/guidance-on-using-getfriendlyurl

BR Nicolai

Votes for this answer: 1
 
Mikkel Ulstrup
Reply

Thank you!

 

You must be logged in to post in the forum