Details
-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
1.12.0-beta2
-
None
Description
Hi,
Step to reproduce:
We have 2 siteaccess (A and B to simplify) on multisite configuration. You could create and article with multiple location on siteAccess A and the secondLocation on siteaccess B
You create a new page on SiteAccess B. Use an embed block to link to the article. Publish and you will see that the block render the main location Id and not the location Id you expected on your siteacsess
If I take an example of EmbedBlock the code is:
public function getTemplateParameters(BlockValue $blockValue) { $attributes = $blockValue->getAttributes(); $contentInfo = $this->contentService->loadContentInfo($attributes['contentId']); return ['locationId' => $contentInfo->mainLocationId]; }
I create a compilerPass to override block services to be able to load locations and filter it by Siteaccess but its not an optimal solutions
Anyway, this issue impact those block:
- Embed
- Keyword
- Places
- Schedule
Cheers.