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

fix(seo): add missing sitemaps #11234

Merged
merged 10 commits into from
Jun 5, 2024
Merged

fix(seo): add missing sitemaps #11234

merged 10 commits into from
Jun 5, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Jun 3, 2024

Summary

(MP-1169)

Problem

Our sitemaps currently only cover the content pages, and don't cover Blog, Curriculum, and other pages.

Solution

Add sub-sitemaps for the Blog, the Curriculum, and miscellaneous pages, and create the sitemap index universally.

Also:

  • Uses the BASE_URL in the sitemaps, so that links on stage are pointing to stage.
  • Fixes a minor bug where the Content-Encoding: gzip header was also set for non-existing sitemaps, causing a "Content Encoding Error" in the browser, because our HTTP 404 page isn't gzip-encoded.

How did you test this change?

Ran yarn build:blog && yarn build:curriculum && yarn tool spas && yarn build --sitemap-index and verified the output.

@caugner caugner force-pushed the MP-1169-add-missing-sitemaps branch from 978888a to 94ee0fc Compare June 3, 2024 10:28
@caugner caugner marked this pull request as ready for review June 3, 2024 12:22
@caugner caugner requested a review from a team as a code owner June 3, 2024 12:22
@caugner caugner requested a review from argl June 4, 2024 16:18
@caugner
Copy link
Contributor Author

caugner commented Jun 4, 2024

@argl I added two commits (94ee0fc...8315619), if you want to take another quick look.

@caugner caugner merged commit 4c78143 into main Jun 5, 2024
13 checks passed
@caugner caugner deleted the MP-1169-add-missing-sitemaps branch June 5, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants