1) There is no WooCommerce on my blog. Perhaps you meant Yoast SEO?
I turned off all plugins, except for WPML and Yoast SEO - and the issue persisted.
Changing the theme to the default one didn't change it either.
2) When I switch from languages per domain to language per directory, the issue also persisted - showing the spanish URLs with domains, not directories.
That implies that these URLs are not generated automatically, but hard-coded. Perhaps in the translations database.
I didn't find the domain names in String Translations, so I searched for the Spanish Title.
I found it in the three following strings:
admin_texts_wpseo_titles [wpseo_titles]open_graph_frontpage_title
admin_texts_wpseo_titles [wpseo_titles]title-home-wpseo
WP Tagline
And they are all properly translated for all 3 languages.
After performing the step #1 something changed - now the English URL data (URL, title, description, etc.) is present in all language versions' og:url and Open Graph JSON.
It's a bit better than Spanish data everywhere, as English version is the main one. 😉
Step #2 changed nothing. Should I revert the Hooks.php edit?
I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
- hidden link
Kindly follow the steps below:
- Set up WPML and Yoast with the same steps as you did on your website
- Install the necessary plugins, only needed. Keep it minimal
- Try to replicate the issue with a simple example
- Share with me step by step guide on how can I check the issue
This will help us to report the probable issue to the compatibility team and solve the possible problem faster.