Skip to content

Commit

Permalink
fix og:image path for CoreShop OGExtractor
Browse files Browse the repository at this point in the history
  • Loading branch information
breakone committed Feb 2, 2024
1 parent 71b9852 commit b9315fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/MetaData/Extractor/ThirdParty/CoreShop/OGExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function updateMetadata(mixed $element, ?string $locale, SeoMetaDataInter

if (method_exists($element, 'getImage') && !empty($element->getImage())) {
$path = $element->getImage()->getThumbnail('coreshop_seo');

$ogImage = (str_starts_with('http', $path) ? '' : Tool::getHostUrl()).$path;
$seoMetadata->addExtraProperty('og:image', $ogImage);
}
Expand Down

0 comments on commit b9315fc

Please sign in to comment.