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?
Long shot but might be worth checking that you have your custom route first
Do you use any episerver protected parameters like e.g "id"?