Background of the issue:
We are having a problem with the way WPML handles the naming of translated pages when updates are made. We have decided to keep all of the page URLs in English and are in the process of converting translated ones back.
Symptoms:
When an update is made, WPML clones the page and appends a numbered suffix, ie. -1, -2, -3, corresponding to the update version of the page. This is causing our page links to break.
Questions:
Are you aware of this issue and if so, how do you fix it?
Can you have someone look at our settings to ensure that we have things set up properly?
I understand the issue you're facing, and it is indeed unusual. Duplicate pages with numbered suffix slugs are usually created when a page is duplicated in the same language using a third-party tool or when a new page is created instead of translating the default one. While WPML does have a feature to duplicate pages, its purpose is to create a translated version of the default page, not a new page.
If a new clone of the page is being created simply by updating it, this could be due to a conflict with third-party plugins or the theme. From the WPML Debug Info, I checked the settings in WPML, and they seem to be correct.
Is the issue happening even when updating the default page? If so, please disable the WPML plugin and its addons and check again. This will help determine if the WPML plugin is involved in this issue.
If the issue persists, then there is something else on your site causing the problem. Please switch to a default theme like "Twenty Twenty-One" and deactivate other plugins, then check again. If this helps resolve the issue, start activating each plugin and theme one by one, monitoring the situation after each activation to identify the exact cause of the problem.
Please let me know how it goes. If WPML is involved in this issue, I will be more than happy to check and assist you further.
If you want the slug for the translated post to be the same as the default slug, follow these steps:
1. Go to WPML > Settings.
2. Scroll down to the Page URL section and set the option to "Copy from original language if translation language uses encoded URLs."
3. This option works only if the language is set to encode URLs. So, go to WPML > Languages and click on "Edit languages."
4. Set "Encode URLs" to 'Yes'(hidden link">Screenshot) for the languages where you want the slug to be the same as the default slug.
I hope the steps above will help in solving the issue. Please feel free to let me know if you need further assistance in this matter. I will be happy to help.
Best regards,
Prosenjit
The topic ‘[Closed] page URL naming issue’ is closed to new replies.