SaaS CMS has officially launched! Learn more now.

Forbid Xhtmlstring to remap links


I'm currently working on migration from ektron cms to episerver. I created xhtmlproperties and filled them with raw html, which contains links. After editing this property, links are parsed and converted to friendly url. What can I do to prevent that? Or can I override converting mechanism to return simple url(we have old links in simple url) instead of friendly? 

Sep 05, 2017 18:38

Have you tried adding full absolute link URLs? I think Epi will leave those alone.

Sep 07, 2017 21:52

Full absolute link URL - it's simple url? No, episerver converting links to it's 'usual' link.

Sep 08, 2017 8:19

An alternative if you want generated urls to be in short format is to attach an event handler to IContentRouteEvents.CreatedVirtualPath and in the eventhandler check if the page has a simple adress and if so change the UrlBuilder in the eventargs to use the short url. The code would be something like in

Sep 08, 2017 9:43

I was assuming, if you migrate from Ektron, that the links are in a non-epi format. If you add them in a manor that Epi leaves untouched (for example you can then in the 2nd pass of an migratrion run find corresponding internal pages and convert it to a "real" internal link.

Sep 08, 2017 10:01
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.