Skip to content

Commit ce91620

Browse files
dkd-friedrichdkd-kaehm
authored andcommitted
[BUGFIX] Site check fails in Tsfe fails
Tsfe tries to dermine if a page is within a site in method getPidToUseForTsfeInitialization(), but as the current root page is not passed to isRequestedPageAPartOfRequestedSite() the check always fails. Passing the root page solves this issue. Resolves: #4425 Ports: #4426
1 parent d177bd6 commit ce91620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/FrontendEnvironment/Tsfe.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ protected function getPidToUseForTsfeInitialization(int $pidToUse, ?int $rootPag
323323
$incomingRootPageId = $rootPageId;
324324

325325
// handle plugin.tx_solr.index.queue.[indexConfig].additionalPageIds
326-
if (isset($rootPageId) && !$this->isRequestedPageAPartOfRequestedSite($pidToUse)) {
326+
if (isset($rootPageId) && !$this->isRequestedPageAPartOfRequestedSite($pidToUse, $rootPageId)) {
327327
return $rootPageId;
328328
}
329329
$pageRecord = BackendUtility::getRecord('pages', $pidToUse);

0 commit comments

Comments
 (0)