Skip to content

Commit

Permalink
[BUGFIX] Fix missing frontend.typoscript request attribute while inde…
Browse files Browse the repository at this point in the history
…xing

Fixes: #3751
  • Loading branch information
tillhoerner authored and dkd-kaehm committed Oct 12, 2023
1 parent 358c49f commit 7ad5aca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Classes/FrontendEnvironment/Tsfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ protected function initializeTsfe(int $pageId, int $language = 0, ?int $rootPage

$backedUpBackendUser = $GLOBALS['BE_USER'] ?? null;
try {
$serverRequest = $serverRequest->withAttribute('frontend.controller', $tsfe);
$tsfe->determineId($serverRequest);
$serverRequest->withAttribute('frontend.controller', $tsfe);
$tsfe->no_cache = false;
// @todo T12: Check if following line really needed
$tsfe->getFromCache($serverRequest);
/** @var ServerRequest $serverRequest */
$serverRequest = $tsfe->getFromCache($serverRequest);
// The manual releasing of locks is low level api and should be avoided in EXT:solr.
$tsfe->releaseLocks();

Expand All @@ -193,6 +193,7 @@ protected function initializeTsfe(int $pageId, int $language = 0, ?int $rootPage
$GLOBALS['BE_USER'] = $backedUpBackendUser;
}

$this->serverRequestCache[$cacheIdentifier] = $serverRequest;
$this->tsfeCache[$cacheIdentifier] = $tsfe;
}

Expand Down

0 comments on commit 7ad5aca

Please sign in to comment.