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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.