I’m getting warnings in SEMrush for a site that uses aliases to duplicate content into different categories.
Canonical URLs are set correctly with alias pages listing their source pages as canonical. However the aliases are still included in the sitemap.xml file which SEMRush (and other SEO tools) see as incorrect.
There doesn’t seem to be a way to add an ‘Exclude from Sitemap’ attribute to an alias or any other way to exlude aliases from the sitemap. Am I missing something here?
That should identify where to change the core back again :-).
Ideally, to create a new pull request to use a config value ‘exclude_aliases’ to switch the new behaviour off again. Maybe a better pull would be a v9 Task parameter for the sitemap task to ‘Exclude Aliases’.
Either way, including aliases will need to be the default as that is the ‘current’ core behaviour.