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?
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