[Forwardport] Use index sitemap name as prefix in split sitemaps #14863
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original Pull Request
#14836
Description
When generating large sitemaps which result in a single index sitemap and several smaller split sitemap files, the split sitemap files do not use the same name prefix as the parent.
For example, if you have a sitemap called
products.xmlthen the split sitemap files are namedsitemap-1-1.xml,sitemap-1-2.xmletc. which does not make any sense.Fixed Issues (if relevant)
N/A
Manual testing scenarios
products.xmlproducts.xmland several split sitemap files prefixed withproducts-, e.g.products-1-1.xmlContribution checklist