Try our conversational search powered by Generative AI!

Linking to dynamic pages within episerver

Vote:
 

Hi all

we have a dynamic page called Products and we have made our own routing so we can send whatever product name and we look it up. Nothing fancy here.

The problem is when we try to link to a product page, episerver keeps rewriting the link. If we use a URL property, it rewrites the link at once. Not even after saving the page, but right after pressing Ok. We choose "External link" because it's not really an internal link, even if the product page itself is internal.

If we link to a productpage in a xhtmlstring property, it kinda works. First time you create it and save the block/page it works. But if you edit that property again. It will rewrite the link and add /EPiServer/CMS/Content/ to the url, between the hostname and the pageurl itself. 

I hope I'm being clear enough with our problem :) Anyone that knows a solution for this?

#143486
Jan 25, 2016 16:48
Vote:
 

Long shot but might be worth checking that you have your custom route first

#143957
Feb 03, 2016 22:59
Vote:
 

Do you use any episerver protected parameters like e.g "id"?

#144124
Feb 08, 2016 11:02
* 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.