Issue Bug Closed

#101417It is not possible to remove the target via the link browser

Sybille Peters 07/23/23, 05:43 updated 12/18/23, 05:46

Description

Reproducible with latest v13, possibly also v12. May have to use patch https://review.typo3.org/c/Packages/TYPO3.CMS/+/80034 to reproduce, otherwise target is not always saved to DB.

Reproduce

  1. Add a target to a link
  2. In the link brower, remove the target, klick update
  3. Save the CE (or switch to source mode)

The target is still there, e.g.

 <p><a href="t3://page?uid=1" title="hallo" target="_blank">link1</a></p>

Reviews 1

History 2

  1. Riccardo De Contardi commented and changed status New Needs Feedback 12/17/23, 17:01

    Am I wrong or https://review.typo3.org/c/Packages/TYPO3.CMS/+/80034 has been merged?

    I tried to reproduce the issue on 12.4.9 and 13.0.0-dev (latest main) without success.
    This is my test procedure

    1) Create a “Text” element and put in it some text
    2) Select some of the text and click on the CKEditor “Link” Button
    3) The Linkbrowser opens; select Target: _blank using the dropdown
    4) Select a page and click on the button to link that page.
    5) Linkbrowser closes itself
    6) Inspect the RTE field using the CKEditor “Source” button

    It shows something like:

    <p>
        <a href="t3://page?uid=484" target="_blank">this is a link</a>
    </p>

    7) Go back to the “edit” mode; click somewhere on the linked word > a small popup to edit the link appears; click on it
    8) The Linkbrowser opens; you have to manually delete the _blank target, as the dropdown does not show the correct target (It seems that it still says it is the “empty” one – but this is another issue)
    9) Click on “Update” button
    4) Select a page and click on the button to link that page.
    10) Linkbrowser closes itself
    11) Inspect the RTE field using the CKEditor “Source” button

    It shows something like:

    <p>
        <a href="t3://page?uid=484">this is a link</a>
    </p>

    Is this sufficient to close the issue or a different test is necessary?

  2. Sybille Peters commented and changed status Needs Feedback Closed 12/18/23, 05:46

    Thanks, Riccardo! Yes, I can no longer reproduce. Closing