-
Notifications
You must be signed in to change notification settings - Fork 1k
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: taxonomies missing lang in sitemap #2373
Conversation
assert!(file_contains!(public, "sitemap.xml", "https://example.com/tags/")); | ||
assert!(file_contains!(public, "sitemap.xml", "https://example.com/tags/hello/")); | ||
assert!(file_contains!(public, "sitemap.xml", "https://example.com/fr/tags/")); | ||
assert!(file_contains!(public, "sitemap.xml", "https://example.com/fr/tags/bonjour/")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current version puts https://example.com/tags/bonjour/
here (notice missing fr
), which results in lots of 404s in the crawlers.
name, | ||
item.slug, | ||
"{}{}/{}", | ||
item.path, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we ensuring it ends with a trailing slash upstream already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, config.make_permalink
ensures it.
I've now added the slash nevertheless just for the consistency.
ec10a5f
to
478c53b
Compare
Thanks! |
This PR fixes
sitemap.xml
having incorrect i18n taxonomy URLs.Sanity check:
Code changes
next
branch?