Background of the issue:
I have a website built with Elementor and translated using WPML. The default language is Spanish, and Portuguese is set as the secondary language. I want to change the primary language to Portuguese.
Symptoms:
When I change the primary language to Portuguese, all the links in Elementor still include /pt-pt/, causing them to break. If I deactivate Elementor, links are correctly without this /pt-pt/ identifier.
Questions:
How can I fix the issue of links still showing /pt-pt/ after setting Portuguese as the primary language with Elementor active?
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Oh I see, but from the text it seems you have solved the problem, is that the case?
If not, then please Enable the debug.log and try to recreate the problem so WordPress can log the error. send me the file it creates (found in the wp-content directory) and I can try to figure out the next step from it.