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 sitemap paths #9439

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Fix sitemap paths #9439

merged 2 commits into from
Mar 13, 2024

Conversation

mjq-sentry
Copy link

@lizokm reported that only some of the pages in the sitemap.xml were being indexed properly. This was caused by an extra trailing /index in many of the paths. This is something that the main Page component already handles, but it was missed in the sitemap. Moved this fix up a level (into getDocsFrontMatter()) so that it didn't have to be duplicated into both the page and the sitemap, and so that future callers don't run into this same oversight.

mjq added 2 commits March 13, 2024 11:46
`getDocsFrontMatter` returns an extra `/index` at the end of some paths, which
breaks the sitemap. This is already handled by its only other caller, in
`app/[[..path]]/page.tsx`.
Currently the removal of a final `/index` path is duplicated in both the page
and sitemap components - move it up into getDocsFrontMatter, which they both
call.
Copy link

vercel bot commented Mar 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 4:13pm

Copy link
Contributor

@lizokm lizokm left a comment

Choose a reason for hiding this comment

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

LGTM

@mjq-sentry mjq-sentry merged commit 0d3dd58 into master Mar 13, 2024
8 checks passed
@mjq-sentry mjq-sentry deleted the mjq-fix-sitemap branch March 13, 2024 17:35
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants