Closed martinapuddu closed 7 months ago
Hi @martinapuddu
Thanks for using the Yoast SEO plugin and also for creating the issue.
I tried to reproduce the issue you mentioned, and on my lab site I noticed that the translated pages are showing without the slug of the homepage. As you haven't mentioned whether you have installed the WPML SEO plugin, I recommend installing it first if you haven't yet. The WPML SEO plugin is required for the WPML-translated pages to show correctly on the Yoast SEO sitemap. The WPML SEO add-on can be downloaded from the downloads page of your WPML dashboard. You can find more information on this here: https://wpml.org/documentation/related-projects/using-wordpress-seo-with-wpml/.
If the issue persists, we recommend you to contact our support team, as we use GitHub exclusively for well-documented bug reports or feature requests. The reported issue does not contain enough information to be a viable bug report or feature request. Thus, we're now closing the report.
We have the following support channels:
If you feel like your bug or enhancement is valid and should be reviewed by us, please use the provided templates, read our contribution guidelines, and submit a new issue.
Thank you for your understanding.
I have a website in Wordpress and I’m using Yoast SEO to automatically create the Sitemap. The website's main language is English. The translations are in Spanish, German and Portuguese. For the translation of the website I’m using the WPML plugin.
The problem is that I’m seeing incorrect entries for the secondary homepages in the sitemap
/page_sitemap.xml
.My default homepage has the slug home and the translations have the slug homepage (Spanish, German and Portuguese version of the website).
The sitemap shows:
https://www.examplesite.com/ (which is correct)
https://www.examplesite.com/es/homepage/ (incorrect as it should be https://www.examplesite.com/es/)
https://www.examplesite.com/de/homepage/ (incorrect as it should be https://www.examplesite.com/de/)
https://www.examplesite.com/pt-pt/homepage/ (incorrect as it should be https://www.examplesite.com/pt-pt/)
I have tried replacing the slug of the translated homepages from homepage to home (the same as the English main version) but the error persists. The only thing that changes is the URL in the sitemap that goes from https://www.examplesite.com/es/homepage/ to https://www.examplesite.com/es/home/.
Is this problem caused by the Yoast SEO plugin or by the WPML plugin? How can I solve it?
Thank you in advance.
Wordpress version: 6.4.3 Yeost SEO plugin version: 22.3 WPML Multilingual CMS plugin version: 4.6.9 WPML String Translation plugin version: 3.2.9