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

Permalinks / Yoast / XML sitemaps #47

Open
shaneparsons opened this issue Jul 13, 2020 · 2 comments
Open

Permalinks / Yoast / XML sitemaps #47

shaneparsons opened this issue Jul 13, 2020 · 2 comments

Comments

@shaneparsons
Copy link

shaneparsons commented Jul 13, 2020

After changing the permalink structure to the ideal "Structured" option, the permalinks in the post sitemap that Yoast generates (post-sitemap.xml) are broken. e.g. https://example.com/work/%postname%/. Note how %postpath% gets parsed, but%postname% doesn't.

I haven't explored the source in depth yet, so I'm not sure how hard it'd be to fix this... But it'd be great if it could play nicely with the auto sitemap generation that Yoast provides, especially since it's such a popular plugin. The only workaround I could think of in the meantime is to create / update the sitemaps manually, but that isn't ideal for bigger sites or for non tech saavy clients... Is there any other workaround that I've missed?

@shaneparsons
Copy link
Author

shaneparsons commented Jul 13, 2020

After further investigation I'm beginning to think this issue might be isolated to Yoast, as other sitemap generators (e.g. Google Sitemap Generator) don't seem to have this problem. Whether the problem is 100% on the Yoast side or not may be worth investigating, but that doesn't necessarily concern me at this point in time.

I'll leave this open for you guys to investigate, but disabling the Yoast sitemaps and using the Google Sitemap Generator plugin instead is an easy enough workaround for me.

@archetyped
Copy link
Owner

Thank you for the report. This is being looked into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants