-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sitemap image URLs do not match with those on product pages #7504
Comments
I'm going to attempt a fix. My current thought is that we'll have to do full product loads, or at least via a collection, so that the image helper can be called. My concern is that this will slow this process down considerably, but at this point it's much more important that it's outputting the correct URLs. |
@maderlock Hi, thanks for reporting this issue. Internal ticket was created MAGETWO-70962. |
Internal ticket to track issue progress: MAGETWO-70056 |
@maderlock thank you for your report. |
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: