Skip to content

Commit 18ea9d4

Browse files
ENGCOM-3040: [Forwardport] Fix sitemap grid render incorrect base urls for multiple stores #18228
- Merge Pull Request #18228 from nntoan/magento2:2.3-develop-PR-port-18000 - Merged commits: 1. 5144320
2 parents 9c4e95d + 5144320 commit 18ea9d4

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)