Skip to content

[BUG] Mountpoint pages are indexed to incorrect root #4364

@rastocs2

Description

@rastocs2

Mountpoint pages are always indexed to root where is original page

Need to change 3 lines in file Classes/Domain/Search/ApacheSolrDocument/Builder.php
Probably it was forgotten, because parameter $mountPointParameter is there, but is not used for getting correct site object

line 61:
$site = $this->getSiteByPageId($pageId);
need to change to
$site = $this->getSiteByPageId($pageId, $mountPointParameter);

line 178:
protected function getSiteByPageId(int $pageId): Site
need to change to
protected function getSiteByPageId(int $pageId, string $mountPointParameter = ''): Site

line 181:
return $siteRepository->getSiteByPageId($pageId);
need to change to
return $siteRepository->getSiteByPageId($pageId, $mountPointParameter);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions