Project

General

Profile

Actions

Bug #105331

open

Target _blank is incorrectly added to relative internal links/deeplinks

Added by Patrick Lenk about 1 month ago. Updated 30 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2024-10-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
rte, ckeditor, relative, internal, links, deelinks
Complexity:
Is Regression:
Sprint Focus:

Description

After the upgrade from TYPO3 v11 to v12, target="_blank" is incorrectly added to relative deeplinks.

RTE ckeditor source:

<p>
    <a href="/kontakt/">Deeplink with relative url</a>
</p>
<p>
    <a href="t3://page?uid=1234">Deeplink with t3 scheme</a>
</p>
<p>
    <a href="https://typo3.org/">External Link</a>
</p>

Rendered frontend source:
(with config.forceAbsoluteUrls = 0 or lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl = 0)

<p>
    <a href="/kontakt/" target="_blank">Deeplink with relative url</a>
</p>
<p>
    <a href="/kontakt/">Deeplink with t3 scheme</a>
</p>
<p>
    <a href="https://typo3.org/" target="_blank" rel="noreferrer">External Link</a>
</p>

Rendered frontend source:
(with config.forceAbsoluteUrls = 1 or lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl = 1)

<p>
    <a href="https://mysite.localhost/kontakt/" target="_blank">Deeplink with relative url</a>
</p>
<p>
    <a href="https://mysite.localhost/kontakt/">Deeplink with t3 scheme</a>
</p>
<p>
    <a href="https://typo3.org/" target="_blank" rel="noreferrer">External Link</a>
</p>
Actions #1

Updated by Patrick Lenk about 1 month ago

  • Subject changed from Target _blank is incorrectly added to relative deeplinks to Target _blank is incorrectly added to relative internal links/deeplinks
  • Category changed from RTE (rtehtmlarea + ckeditor) to Frontend
  • Tags changed from rte, ckeditor, relative, links, deelinks to rte, ckeditor, relative, internal, links, deelinks
Actions #2

Updated by Patrick Lenk 30 days ago

Relative internal-links/ without the leading / are working as excpeted and does not have the target _blank. So it seems that in TYPO3 v12 /relative-link/ is handled as an absolute link.

Actions

Also available in: Atom PDF