Background of the issue:
I am trying to: After I save a page or post, the language code gets removed from the URL. /wp-admin/post.php?post=38316&action=edit&lang=us becomes /wp-admin/post.php?post=38316&action=edit
Symptoms:
The language code is removed from the URL after saving a page or post.
Questions:
Why is the language code disappearing from the URL after saving a page or post?
How can I ensure the language code remains in the URL after saving?
Thank you for contacting WPML Support, I will gladly help you.
I noticed from the debug information you provided that you are using WPML v4.6.11, I suggest updating to the latest version (I might be a good practice updating any other plugin that might require updating on your website).
* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.
After the update, clear the website's cache (server-side included) and check if the issue persists.
To further troubleshoot the issue I would require a copy of your website to test it locally and further escalate the issue if needed.
You can use the Duplicator plugin to create a copy of your website and upload the backup on a file-sharing website (Google Drive, Dropbox, etc.), please send me the link to download the backup after.
* Please try to minimize the size of the backup file by excluding unnecessary media files or backup folders that might be in the "/wp-content/" folder.
I’ve set your next reply as private so you can provide the backup link.
Thanks,
Marsel
The topic ‘[Closed] Language Code Disappearing from Post URL after Save’ is closed to new replies.