Bug: Local link in rich text editor doesn't render correctly
Hello,
When adding a local link in the rich text editor within a U7 grid (via "Insert/edit link" and selecting a document), the front end renders the link as follows:
<a href="/{localLink:[id]}">Text</a>
For now, our work-around is to hard-code the relative path, but obviously that's not ideal.
I just experienced this in Umbraco 7.4.3 (the latest version), but I don't see an issue in the Umbraco issue tracker for it. Does anybody know if there is any plan to address this?
Bug: Local link in rich text editor doesn't render correctly
Hello,
When adding a local link in the rich text editor within a U7 grid (via "Insert/edit link" and selecting a document), the front end renders the link as follows:
For now, our work-around is to hard-code the relative path, but obviously that's not ideal.
Hi Keith.
Have you try this : ?
<p>@Html.Raw(umbraco.template.ParseInternalLinks(item.dataAlias.ToString()))</p>
Hope it will help.
Thank you, that should help as a slightly better workaround, however I think this should still be marked as a bug until fixed.
I just experienced this in Umbraco 7.4.3 (the latest version), but I don't see an issue in the Umbraco issue tracker for it. Does anybody know if there is any plan to address this?
FYI, I apparently submitted a bug report a while back, though it seems it has been ignored so far: http://issues.umbraco.org/issue/U4-6447
Here's another discussion on the topic: https://our.umbraco.org/forum/developers/razor/44402-locallink-not-parsed-RenderMacro-in-MVC-section
Also, I'm pretty sure this is the new way to do the workaround explained above: https://github.com/umbraco/Umbraco-CMS/blob/75c2b07ad3a093b5b65b6ebd45697687c062f62a/src/Umbraco.Web/Templates/TemplateUtilities.cs
The lowercase Umbraco namespace stuff is typically deprecated.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.