Copied to clipboard

Flag this post as spam?

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


  • Gavin Williams 53 posts 246 karma points
    Sep 04, 2024 @ 11:06
    Gavin Williams
    0

    Insert anchorlink bug in Umbraco 14?

    Before I raise this as a bug, is anyone having an issue/know how to resolve an issue with inserting anchorlinks in the RTE editor in Umbraco 14? When I insert the anchorlink via the "Insert Link" toolbar and enter the anchor name in the anchor/querystring field, the resulting markup for the anchorlink gets prefixed with the text /undefined, so the link url is invalid. For example:

    <a href="/undefined#cheese" title="Show me some cheese!" data-anchor="#cheese">Show me some cheese!</a>
    

    In fact, I think the /undefined element is actually referring to the current editor url in some way. If I edit a page, then click in the browser url input box and hit return to refresh the editor page, then try to insert the anchorlink, instead of /undefined I get the current url prefixed to the anchorlink e.g.

    /umbraco/section/content/workspace/document/edit/5b34c1bd-60a6-401f-8d5b-cdfa6df9e13a/invariant/tab/content#cheese
    

    Reproducable on at least v14.1.2 and v14.2.0

  • Gavin Williams 53 posts 246 karma points
    Sep 04, 2024 @ 14:53
Please Sign in or register to post replies

Write your reply to:

Draft