We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 320023e + 1e7ab11 commit 36a5965Copy full SHA for 36a5965
app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Generate.php
@@ -49,7 +49,13 @@ public function execute()
49
// if sitemap record exists
50
if ($sitemap->getId()) {
51
try {
52
+ $this->appEmulation->startEnvironmentEmulation(
53
+ $sitemap->getStoreId(),
54
+ \Magento\Framework\App\Area::AREA_FRONTEND,
55
+ true
56
+ );
57
$sitemap->generateXml();
58
+ $this->appEmulation->stopEnvironmentEmulation();
59
$this->messageManager->addSuccessMessage(
60
__('The sitemap "%1" has been generated.', $sitemap->getSitemapFilename())
61
);
0 commit comments