• Resolved hawkeye126

    (@hawkeye126)


    This may be a duplicate ticket as I believe the issue is being addressed internally here:
    https://github.com/Yoast/wordpress-seo/issues/21052

    To Reproduce Step-by-step reproduction instructions

    1. Install and activate Yoast SEO latest version and use a default WP theme
    2. Create a new post and add a link/anchor text to content in the post that has at least two words (e.g. Yoast SEO)
    3. Highlight (very specific step, don’t just click on the link) the anchor text, click on the pencil icon, and change the link url. Press enter to save the new link value.
    4. Inspect the newly edited link in the DOM and you’ll see a new link containing the last character of the original.

    Expected results

    1. That the anchor text or link would still be in one single a element.

    Actual results

    1. The links are split into two link elements. One link element has the update url, the other does not.

    Screenshots, screen recording, code snippet

    The html initially is like this:

    
    <a href='/this-is-a-link'>This is the header text</a>
    

    and becomes (when editing the link and adding ‘-test’ the end)

    <a href='/this-is-a-link'>This is the header tex</a>
    <a href='/this-is-a-link-test'>t</a>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Possible Duplicate] Editing highlighted link adds additional link.’ is closed to new replies.