sitemap image URLs do not match with those on product pages #7504
Labels
bug report
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
This is currently stopping product images from being correctly indexed by google, which is a serious problem for our clients.
Preconditions
Steps to reproduce
Expected result
Actual result
The problem here is that google will not index the images from the sitemap as it the URLs do not match up.
However, I have struggled to make these match up. gallery.phtml outputs the image as follows:
The sitemap gets the image url directly from the product attribute not really consecutive lines, but taken from module-sitemap/Model/Sitemap.php:
The problem here is that $this->_productFactory->create()->getCollection($storeId) gets an array rather than the actual products. Therefore I do not think we can use this with the image helper.
Any thoughts on how to fix this issue?
The text was updated successfully, but these errors were encountered: