Skip to content

Commit

Permalink
fixings for images in the sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
psion committed Sep 4, 2023
1 parent eecb0e7 commit 07eee2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "selenesoftware/cms-bundle",
"type": "symfony-bundle",
"version": "0.0.7",
"version": "0.0.8",
"description": "CMS platform for Symfony",
"homepage": "https://github.com/SeleneSoftware/seleneCMSBundle",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/EventSubscriber/SitemapSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function registerImageUrls(UrlContainerInterface $urls): void
$decoratedUrl = new GoogleImageUrlDecorator($url);

foreach ($images as $i) {
$decoratedUrl->addImage(new GoogleImage($i->getImageFile()));
$decoratedUrl->addImage(new GoogleImage($url.$i->getImageFile()));
}

$urls->addUrl($decoratedUrl, 'images');
Expand Down

0 comments on commit 07eee2f

Please sign in to comment.