Skip to content

Commit c4af123

Browse files
author
Stanislav Idolov
authored
ENGCOM-1393: [Forwardport] Use index sitemap name as prefix in split sitemaps #14863
2 parents d1647c2 + 5c3cc1d commit c4af123

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)