November Happy Hour will be moved to Thursday December 5th.

Forbid Xhtmlstring to remap links

A S
A S
Vote:
 

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? 

#181933
Sep 05, 2017 18:38
Vote:
 

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

#182021
Sep 07, 2017 21:52
A S
Vote:
 

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

#182033
Sep 08, 2017 8:19
Vote:
 

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 https://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=81667

#182039
Sep 08, 2017 9:43
Vote:
 

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 https://imported.com/pathx/) you can then in the 2nd pass of an migratrion run find corresponding internal pages and convert it to a "real" internal link.

#182049
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.