Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make status code check more strict for sitemap plugin #10779

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adrianlyjak
Copy link
Contributor

This is a potential fix for #10778

Changes

  • Makes status code exclusion from sitemap more strict. Only [locale]/[error-code] and [error-code] style pages are excluded
  • requires locales to be configured for locale page exclusion

Testing

Updated existing test fixture and added test for this scenario

Docs

The current exclusion logic isn't documented, so it seems unnecessary to add further documentation about this edge case. IMO, this seems like a bug

Copy link

changeset-bot bot commented Apr 12, 2024

🦋 Changeset detected

Latest commit: a39f0a8

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Apr 12, 2024
@adrianlyjak adrianlyjak force-pushed the 404-fix branch 2 times, most recently from 1f67782 to c116eb3 Compare April 12, 2024 18:47
@adrianlyjak adrianlyjak marked this pull request as ready for review April 12, 2024 18:48
@matthewp
Copy link
Contributor

Can you rebase against main?

@adrianlyjak
Copy link
Contributor Author

@matthewp 👌 rebased and all checks pass

Copy link
Contributor

@bholmesdev bholmesdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix looks good to me! Confirmed that 404 and 500 should only be detected from src/pages in our docs, and should include localized version as well per the i18n middleware. We Adri-can merge I think @adrianlyjak

Co-authored-by: Ben Holmes <hey@bholmes.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants