Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Keith Donnell 82 posts 187 karma points
    Jan 27, 2015 @ 23:57
    Keith Donnell
    0

    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.

  • gilad 185 posts 425 karma points
    Jan 28, 2015 @ 00:14
    gilad
    0

    Hi Keith.

    Have you try this : ?

    <p>@Html.Raw(umbraco.template.ParseInternalLinks(item.dataAlias.ToString()))</p>

    Hope it will help.

  • Keith Donnell 82 posts 187 karma points
    Jan 28, 2015 @ 16:00
    Keith Donnell
    0

    Thank you, that should help as a slightly better workaround, however I think this should still be marked as a bug until fixed.

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Apr 29, 2016 @ 18:07
    Nicholas Westby
    0

    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?

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Apr 29, 2016 @ 18:49
    Nicholas Westby
    1

    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

    var fixedString = Umbraco.Web.Templates.TemplateUtilities.ParseInternalLinks(strValue);
    

    The lowercase Umbraco namespace stuff is typically deprecated.

  • 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.

Please Sign in or register to post replies