Home›Support›English Support›[Resolved] Can not change the slug from a translated page into the orginal slug
[Resolved] Can not change the slug from a translated page into the orginal slug
This thread is resolved. Here is a description of the problem and solution.
Problem:
Client was unable to change the slug of a translated page to "the-lake-project"; it kept reverting to "the-lake-project-12". The client had already deleted old String translations but the issue persisted.
Solution:
Eventually, the client discovered that old translated pages using the desired slug were causing the issue, and after deleting them, the problem was resolved.
Before making these changes, it's important to back up your website and database.
If this solution doesn't seem relevant to your situation, please open a new support ticket with us and we'll be happy to assist you further.
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.
I want to change the slug in a translated page to "the-lake-project". In our dutch version it created the slug "the-lake-project-12". When i want to change this back to "the-lake-project" it does not work and keeps giving med "the-lake-project-12".
I have been able to change it to "thelakeproject" but i would like to know why i can not change the slug back to "the-lake-project".
I have deleted all the old String translations but this did not solve the problem.
Post and Page slugs are automatically created from the title. If you want them available as slugs for you to translate, use these steps:
IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
1. Go to WPML → Settings. Scroll to Translated documents options.
2. Under Page URL, choose the Translate option. Click Save.
See attached.
After that, resave permalinks (WordPress Settings -> Permalinks), then edit the page in default language, make a small change like a word or dot, save and update the translation.
I have tried your suggestion but it does not work. It keep adding a number when i changed it. It looks correct in WMPL but when i i test it live on frontend it keep adding a number.
nl/the-lake-project also changes to nl/the-lake-project-13
I have tried to recreate the page from scratch but the problem stays.
I see you're using a redirection plugin and as per your description, it may also be caching.
Before proceeding further, may I ask you to try the following?
IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
- Deactivate all plugins except WPML and its addons and check for the issue.
- Clear all caches and check again.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2023).
Please let me know if it helps or I'll try my best to further assist you on the matter.
There were old translated pages left that used this slug. I have now deleted all non used translated pages. There is on option to activate automatic deletion of the translated pages when you delelete the standard language. But this was not activated.