#111452CKEditor inserts the raw t3://record href as link text
Description
Problem
When a record link is inserted without a text selection, the rich text editor
uses the URL itself as the link text, for example
@t3://record?identifier=news&uid=12@. The link balloon shows the same raw
href, and “Open link” and Ctrl+Click do nothing. Page, file, folder, URL, email
and telephone links get a resolved title.
Steps to reproduce
- Configure a record link handler, for example
TCEMAIN.linkHandler.newsfor a
table with records on a page. - Edit a text element, place the caret without selecting text.
- Open the link browser, choose the record tab and pick a record.
- The inserted link text is
t3://record?identifier=news&uid=12.
Cause
LinkPreviewController::resolveAction() (route link_preview) matches
@TYPE_PAGE@, TYPE_FILE, TYPE_FOLDER, TYPE_URL, TYPE_EMAIL and
@TYPE_TELEPHONE@. A record link falls into default => $result and comes back
with title and url null. rte-link-browser.ts then uses an empty link
text and typo3-link.ts inserts linkText || href.
Suggested fix
Resolve TYPE_RECORD: table from TCEMAIN.linkHandler.<identifier>.configuration.table
of the page the edited record is stored on, tables_select and
@readPageAccess()@ of the record’s page as LinkElement does, title via
@BackendUtility::getRecordTitle()@, path of the record’s page. Keep the
access safeguards the existing preview tests cover.
Becomes urgent with #111379, which turns links to content elements into record
links.
Reviews 1
History 04
-
Gerrit Code Review pushed patch set 1 for main to change 97675 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-15T10:40:52+00:00" > 11/15/26, 10:40 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97675 <span data-processor="relativetime" data-value="2026-11-15T11:01:53+00:00" > 11/15/26, 11:01 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97675 <span data-processor="relativetime" data-value="2026-11-15T11:10:18+00:00" > 11/15/26, 11:10 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 97675 <span data-processor="relativetime" data-value="2026-11-15T11:12:14+00:00" > 11/15/26, 11:12 </span>