-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#15588 Fixed incorrect image urls in multistore xml sitemap #15689
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
#15588 Fixed incorrect image urls in multistore xml sitemap #15689
Conversation
Added the appEmulation to get the correct image Url for the generated sitemaps. Context had incorrect Url data.
48 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
Change for travisCI
Might be smart to wrap this in a |
@StevenGuapaBV thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
$sitemap->generateXml(); | ||
$this->appEmulation->stopEnvironmentEmulation(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned by @JeroenVanLeusden I think it would be a good idea to make sure we are stopping this emulation in all cases including exception cases. #15689 (comment)
placed the stop Emulation in a finally. Now it will always be executed.
Hi @dmanners and @JeroenVanLeusden. I changed the logic and put the stop in a finally. Is that okay as well? Seems to make more sense than a try catch in a try catch block. A finally will always be executed and the stop emulation does not throw an exception of its own. |
Hi @StevenGuapaBV. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
I made the forwardport for the 2.3 release line via the porting tool. This should be done now. |
Description
Added the appEmulation to get the correct image Url for the generated sitemaps. This was needed because the catalog image helper context had incorrect Url data.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist