diff --git a/app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Generate.php b/app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Generate.php index c46733b7d325d..4ef67dbabfc15 100644 --- a/app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Generate.php +++ b/app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Generate.php @@ -45,7 +45,8 @@ public function execute() if ($sitemap->getId()) { try { //We need to emulate to get the correct frontend URL for the product images - $this->appEmulation->startEnvironmentEmulation($sitemap->getStoreId(), + $this->appEmulation->startEnvironmentEmulation( + $sitemap->getStoreId(), \Magento\Framework\App\Area::AREA_FRONTEND, true );