Skip to content

Commit 5c3cc1d

Browse files
ENGCOM-1393: [Forwardport] Use index sitemap name as prefix in split sitemaps #14863
- Merge Pull Request #14863 from rostyslav-hymon/magento2:2.3-develop-PR-port-14836 - Merged commits: 1. 7183bf2
2 parents 18a7e29 + 7183bf2 commit 5c3cc1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sitemap/Model/Sitemap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ protected function _finalizeSitemap($type = self::TYPE_URL)
646646
*/
647647
protected function _getCurrentSitemapFilename($index)
648648
{
649-
return self::INDEX_FILE_PREFIX . '-' . $this->getStoreId() . '-' . $index . '.xml';
649+
return str_replace('.xml', '', $this->getSitemapFilename()) . '-' . $this->getStoreId() . '-' . $index . '.xml';
650650
}
651651

652652
/**

0 commit comments

Comments
 (0)