Don't include the 404 route in XML sitemaps #2605
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
difficulty: starter
Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.
help wanted
Asking for outside help and/or contributions to this particular issue or PR.
🐛 Bug Report
When testing the XML sitemaps I found that the first URL in it on our site was the 404 route:
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
Expected behavior
The XML sitemap should only contain URLs that should return a
200
status code.Actual Behavior
As shown above, the
404.html
file was included, which should not be indexed.Your Environment
The text was updated successfully, but these errors were encountered: