This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with incorrect URLs in the product sitemap for foreign languages, where untranslated slugs from the original language are being used instead of the translated ones. Solution: If you're facing similar issues with your sitemap URLs when using WPML and Rank Math, we recommend installing and enabling the WPML SEO bridge plugin. You can find detailed guidance on setting up and optimizing your multilingual website with Rank Math and WPML in our documentation: https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-websites-using-rank-math-and-wpml/ and https://rankmath.com/kb/multilingual-seo-wpml/. After activating the plugin, you should regenerate the sitemap by going to Rank Math SEO -> Sitemap Settings. Make a minor adjustment to enable the 'Save Changes' button, click it, and then revert the change if necessary. This action should update the sitemap.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to correct the URLs in the product sitemap for the foreign URL. It is pulling untranslated slugs from the original language. The issue can be seen at: hidden link.
Symptoms:
Instead of the expected URL 'hidden link', I got 'hidden link'. The term 'izdelek' is from the original language instead of the translated 'produkt'.
Questions:
How can I ensure the sitemap pulls the correct translated slugs for foreign URLs?
Why is the sitemap using the original language term instead of the translated one?
When using WPML and Rank Math, you must also install and enable our bridge plugin WPML SEO. Please review our guide on working with the Rank Math plugin:
According to the debug information on your site, I can see that this plugin is not active on your site. If this is the case, could you please install and activate it, then regenerate the sitemap and see if it resolves the problem?
According to the information I got, you can do that in Rank Math SEO -> Sitemap Settings. There, you will need to make some adjustments to the settings to activate the Save Changes button. (You can make this change and then revert it.) Then, after clicking the Save Changes button, the sitemap should be updated. Please see the attached screenshot.
Thanks for sending me the video. However, I don't understand how it is related to the issue of this ticket -- RankMath sitemap malfunction. In the video, you demonstrate something related to WooCommerce orders.
Have you sent me the wrong video?
If so, please send me the relevant video.
If the RankMath siteamp issue is already fixed on your site, please mark this ticket as resolved.
If you require additional assistance with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please back up the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
Also, if needed, please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All-in-One Migration. Please let me know if you agree.
I tried to replicate this issue on my test site, but was unable to reproduce it. Then I revisited your products' sitemap here: hidden link. And I can see that the problem is corrected. Products in the Croatian language show like this: hidden link, and there no wrong listing like this: hidden link. Please see the attached screenshot.
Could you please confirm that the issue is now resolved?