#111014Browser tab title of the record edit form is escaped twice
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 & 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
-
Gerrit Code Review pushed patch set 1 for main to change 96604 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-10-11T10:00:55+00:00" > 10/11/26, 10:00 </span> -
Wolfgang Klinger changed Duplicated by #111033 <span data-processor="relativetime" data-value="2026-10-13T05:50:44+00:00" > 10/13/26, 05:50 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 96787 <span data-processor="relativetime" data-value="2026-10-17T13:54:09+00:00" > 10/17/26, 13:54 </span>
-
Wolfgang Klinger commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-17T13:55:14+00:00" > 10/17/26, 13:55 </span> -
Gerrit Code Review pushed patch set 2 for 14.3 to change 96787 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-10-19T09:29:59+00:00" > 10/19/26, 09:29 </span> -
Wolfgang Klinger commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-10-19T18:40:15+00:00" > 10/19/26, 18:40 </span>Applied in changeset commit:310c30f68815bdd73177fc8e60f5c587273596eb.
Applied in changeset commit:f3b7a5692fe238962a44cb3139cf09f7674d2c16.