Skip to content

Commit 5144320

Browse files
committed
Fix sitemap grid render incorrect base urls for multiple stores
1 parent 9c4e95d commit 5144320

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Sitemap/Block/Adminhtml/Grid/Renderer

1 file changed

+1
-0
lines changed

app/code/Magento/Sitemap/Block/Adminhtml/Grid/Renderer/Link.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function render(\Magento\Framework\DataObject $row)
6262
{
6363
/** @var $sitemap \Magento\Sitemap\Model\Sitemap */
6464
$sitemap = $this->_sitemapFactory->create();
65+
$sitemap->setStoreId($row->getStoreId());
6566
$url = $this->escapeHtml($sitemap->getSitemapUrl($row->getSitemapPath(), $row->getSitemapFilename()));
6667

6768
$fileName = preg_replace('/^\//', '', $row->getSitemapPath() . $row->getSitemapFilename());

0 commit comments

Comments
 (0)