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

msm_sitemap post permalink structure does not match permalink display URLs #170

Open
benlk opened this issue Nov 11, 2022 · 0 comments
Open

Comments

@benlk
Copy link

benlk commented Nov 11, 2022

There's a mismatch between the post URLs returned by WordPress and the URL where the sitemap is displayed:

$wp post list --post_type=msm_sitemap --fields=ID,url
+----------+--------------------------------------------+
| ID       | url                                        |
+----------+--------------------------------------------+
| 24806231 | http://example.test/?msm_sitemap=2022-11-11 |
| 24806222 | http://example.test/?msm_sitemap=2022-10-22 |
| 24806223 | http://example.test/?msm_sitemap=2022-10-14 |
...

These URLs don't match the URL where they're visible on the site, which is in the format /sitemap.xml?yyyy=2022&mm=11&&dd=11 or /sitemap-2022.xml?mm=11&dd=11

This mismatch may cause problems for automated tooling that interacts with the sitemap, such as a cache purger that purges the post's URL when a post is created or updated.

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

No branches or pull requests

1 participant