Bug #92305

indexedDocTitle is always overwritten by TypoScriptFrontendController::generatePageTitle()

Added by Julian Hofmann 12 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-09-14
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Also available in: Atom PDF