Skip to content
Open
4 changes: 4 additions & 0 deletions plugins/system/schemaorg/src/Extension/Schemaorg.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ public function onBeforeCompileHead(BeforeCompileHeadApplicationEvent $event): v
$localSchema->set('isPartOf', ['@id' => $webPageId]);

$itemSchema = $localSchema->toArray();
if (!empty($itemSchema['image'])) {
$itemSchema['image'] = Uri::root() . HTMLHelper::_('cleanImageUrl', $itemSchema['image'])->url;
}


$baseSchema['@graph'][] = $itemSchema;
}
Expand Down