Issue Bug Resolved

#111014Browser tab title of the record edit form is escaped twice

Wolfgang Klinger 10/11/26, 09:56 updated 10/19/26, 18:40

Description

Problem

Open a record whose title contains a special character, for example a content element with the header “Sample text & media”.

The breadcrumb and the headline of the form show the title correctly. The browser tab shows:

Sample text & media · Text & Media · #6

Cause

EditDocumentController::resolveDocumentTitle() escapes the record title and the type label with htmlspecialchars(). The result is passed to ModuleTemplate::setTitle(). PageRenderer escapes the title again when it renders the <title> tag.

The same string is also used as the display name of the bookmark button. It is written into the display-name attribute of typo3-backend-bookmark-button, where it is escaped a second time as well. A bookmark created from such a record is stored with &amp; in its title.

Expected

The tab title and the bookmark title show the plain record title, for example “Sample text & media”.

Notes

Introduced with the change for #109192 (moving the record header rendering from FormEngine to the controllers). SiteConfigurationController::resolveDocumentTitle() does not escape and works correctly.

Affected: main, 14.3

Reviews 2

History 36

  1. Gerrit Code Review pushed patch set 1 for main to change 96604 status Accepted Under Review <span data-processor="relativetime" data-value="2026-10-11T10:00:55+00:00" > 10/11/26, 10:00 </span>

  2. Wolfgang Klinger commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-17T13:55:14+00:00" > 10/17/26, 13:55 </span>

    Applied in changeset commit:f3b7a5692fe238962a44cb3139cf09f7674d2c16.

  3. Gerrit Code Review pushed patch set 2 for 14.3 to change 96787 status Resolved Under Review <span data-processor="relativetime" data-value="2026-10-19T09:29:59+00:00" > 10/19/26, 09:29 </span>

  4. Wolfgang Klinger commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-10-19T18:40:15+00:00" > 10/19/26, 18:40 </span>

    Applied in changeset commit:310c30f68815bdd73177fc8e60f5c587273596eb.