Skip to content

Commit 6c345a7

Browse files
ENGCOM-1377: Use index sitemap name as prefix in split sitemaps #14836
- Merge Pull Request #14836 from jameshalsall/magento2:fix-split-sitemap-names - Merged commits: 1. dfc79c6
2 parents 0884edc + dfc79c6 commit 6c345a7

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
@@ -614,7 +614,7 @@ protected function _finalizeSitemap($type = self::TYPE_URL)
614614
*/
615615
protected function _getCurrentSitemapFilename($index)
616616
{
617-
return self::INDEX_FILE_PREFIX . '-' . $this->getStoreId() . '-' . $index . '.xml';
617+
return str_replace('.xml', '', $this->getSitemapFilename()) . '-' . $this->getStoreId() . '-' . $index . '.xml';
618618
}
619619

620620
/**

0 commit comments

Comments
 (0)