This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues with URL management on their website using WPML, where URLs unexpectedly show the language code 'pt-br' instead of 'pt'.
Solution:
We noticed that the client is using Portuguese with WPML, where the default language code is 'pt-br'. It's important to verify if 'pt' as a language code was ever configured or used on the website. We recommend checking for any settings or customizations that might have been altered to use 'pt' instead of 'pt-br'. Additionally, we suggest updating the Yoast SEO Premium plugin to the latest version, as it might influence URL behavior. If these steps do not resolve the issue, or if the problem described here seems outdated or not relevant to your current situation, please visit our known issues page at https://wpml.org/known-issues/ and confirm that you have installed the latest versions of themes and plugins. If the issue persists, we highly recommend opening a new support ticket for further assistance at WPML support forum.
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.