Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 5 replies, has 2 voices.

Last updated by Marsel Nikolli 5 months ago.

Assisted by: Marsel Nikolli.

Author Posts
August 29, 2024 at 4:02 pm #16121135

kateH-7

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?

August 29, 2024 at 4:06 pm #16121140

Marsel Nikolli

Hi,

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.

Let me know how it goes,
Marsel

August 29, 2024 at 4:28 pm #16121236

kateH-7

Hi Marsel,

Yes i updated the plugin and cleared all cache and the issue still persists

August 30, 2024 at 7:15 am #16123172

Marsel Nikolli

Hi,

Thank you for the update.

Would it be possible to check if the issue happens in a minimal setup, meaning:

- switch to a default WP theme
- keep active only WPML Plugins and must-have plugins
- disable all other plugins

After, check if the issue is still happening.

Note: Please make sure you have a full backup (files & database) before trying anything on your website.

Let me know how it goes,
Marsel

August 30, 2024 at 1:05 pm #16124860

kateH-7

Hi,

I have tried the minimal setup but the issue still persists. The lang URL parameter is being stripped as the page/post is updating

August 30, 2024 at 1:18 pm #16124972

Marsel Nikolli

Hi,

Thank you for the update.

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.