Issue Bug Under Review

#111452CKEditor inserts the raw t3://record href as link text

Oliver Bartsch 11/14/26, 17:40 updated 11/15/26, 11:12

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

  1. Configure a record link handler, for example TCEMAIN.linkHandler.news for a
    table with records on a page.
  2. Edit a text element, place the caret without selecting text.
  3. Open the link browser, choose the record tab and pick a record.
  4. 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