Issue Bug Closed

#92305indexedDocTitle is always overwritten by TypoScriptFrontendController::generatePageTitle()

Julian Hofmann 09/14/20, 17:01 updated 09/07/26, 20:22

Description

Besides the page title, there is the indexedDocTitle e.g for indexed_search. It’s useful for shorter titles (e.g. without website’s name). But it seems, since TYPO3 v9 (and pageTitle API?), this variable is always set to the page title in TypoScriptFrontendController::generatePageTitle():

if ($pageTitle !== '') {
  $this->indexedDocTitle = $pageTitle;
}

indexedDocTitle is used for example by \GeorgRinger\News\ViewHelpers\TitleTagViewHelper or \FluidTYPO3\Vhs\ViewHelpers\Page\Header\TitleViewHelper

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2025-11-05T11:20:21+00:00" > 11/05/25, 11:20 </span>

    Is this issue still relevant? As far as I can see the lines cited in the description are absent from TypoScriptFrontendController::generatePageTitle() since TYPO3 12

  2. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-09-07T20:22:25+00:00" > 09/07/26, 20:22 </span>

    Commit 1651f2a5e12 fixed it („[TASK] Move Page Title Generation for search out of TSFE”, #97861)

    > This change removes the internal property “indexedDocTitle” which is filled by the PageTitleProvider API. This API is then moved to Indexed Search to use the same logic to fetch the “real” page title (without site title etc).