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

EPiServer 7.19.2 - Links in XhtmlString not resolving to correct language

Vote:
 

Hi,

We have a customer were the XhtmlString is not resolving the URLs correctly. On the page Cybertip: Privacy tips for in case of a data breach there are a few links at the bottom (under More cybertips) that link to an English page, but the link itself is a) still in GUID format, and b) links to the Dutch version of the page. Does anyone know what to do about it?

The few links in the text are set to go to the English version, but the two at the bottom have the language set to "Automatic".

Unfortunately upgrading is not (yet) an option, but the customer would like this fixed.

Thanks,
Patrick

#141859
Nov 23, 2015 10:43
Vote:
 

Nobody that can shed any light on this?

#142022
Nov 26, 2015 14:47
Vote:
 

I believe we had a similar issue and the fix was to render the xhtmlstring using the following helper.

@Html.XhtmlString(Model.Content)

Where Model.Content property is of type XHtmlString

regards,

Danny

#142658
Edited, Dec 17, 2015 16:49
Vote:
 
<p>I totaly forgot about this thread... We contacted Developer Support and they've given us the tip to do&nbsp;</p> <pre class="brush:html;auto-links:false;toolbar:false" contenteditable="false">@Html.DisplayFor(m =&gt; m.CurrentPage.Body)</pre> <p>instead of</p> <pre class="brush:html;auto-links:false;toolbar:false" contenteditable="false">@Model.CurrentPage.Body</pre> <p>That seems to work just fine as the linked page up above is now rocking some nice and proper URLs.</p>
#142664
Dec 17, 2015 19:24
* 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.