diff --git a/Classes/Domain/Search/ApacheSolrDocument/Builder.php b/Classes/Domain/Search/ApacheSolrDocument/Builder.php index 181ed214a..0639a0dfc 100644 --- a/Classes/Domain/Search/ApacheSolrDocument/Builder.php +++ b/Classes/Domain/Search/ApacheSolrDocument/Builder.php @@ -58,7 +58,7 @@ public function fromPage( $pageRecord = $pageInformation->getPageRecord(); $document = GeneralUtility::makeInstance(Document::class); - $site = $this->getSiteByPageId($pageId); + $site = $this->getSiteByPageId($tsfe->rootLine[0]['uid'] ?? $pageId); $accessGroups = $this->getDocumentIdGroups($pageAccessRootline); $documentId = $this->getPageDocumentId($pageInformation, $pageArguments, $siteLanguage, $accessGroups, $mountPointParameter);