Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to remove all '?lang=' links and ensure only the directory option is used for URLs. Despite updating translations on each product, the old '?lang=' links still appear.
Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Re-save the permalinks in your WordPress settings.
2. Navigate to WPML -> Settings -> Adjust link section and click on the button to adjust the links.
3. Flush any cache memory that might exist on your site to ensure changes take effect.
4. Double-check if the issue has disappeared.
If the problem persists, edit content in the original language, fix one of the links, save the changes, update the translation, and check the results.

Please note that this solution might be irrelevant if it's 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 continues, please open a new support ticket at WPML support forum for further assistance.

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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Carlos Rojas 4 months, 3 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
February 13, 2025 at 4:59 pm #16703891

philippeC-3

Background of the issue:
I am trying to remove all links to ?lang= and ensure only the directory option is used. I updated the translation on each product, but the old ?lang= is still appearing. Other pages with this problem include: hidden link, hidden link, hidden link. The issue can be seen on this page: hidden link.

Symptoms:
I expected the link to be hidden link, but instead, I got hidden link.

Questions:
How can I ensure that only the directory option is used without ?lang= links?
Why are the old ?lang= links still appearing after updating translations?

February 14, 2025 at 12:09 pm #16706182

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

Please follow these steps:
- Re-save the permalinks
- Go to WPML -> Settings -> Adjust link section and click on the button to adjust the links
- Flush any cache memory that might exist
- Double-check if the issue disappeared

If the issue persists, then edit a content in the original language -> Fix one of the links -> Save the changes -> Update the translation and check the results