This thread is resolved. Here is a description of the problem and solution.
Problem:
The client reported that links with '/en' still appeared in the sitemap even though these pages were supposed to be deleted. Additionally, upon deleting the English version of a page, the language switcher button disappeared, which normally would redirect users to the homepage if a translation in the selected language was not available.
Solution:
1. We confirmed that the translations existed and were not technically incorrect. To remove unwanted pages from the sitemap, the client should delete the posts in the secondary language from the WordPress admin, similar to how they would in the default language.
2. To address the missing language switcher button, the client needs to enable the option in WPML to redirect missing translations to the homepage. This setting is found under WPML > Languages.
3. For the issue with redirects, it was suggested to use more unique slugs for each language version of the pages to avoid conflicts, as using identical slugs in different languages can cause issues with WordPress and the server.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
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.
This topic is split from https://wpml.org/forums/topic/creates-en-slug-automatically-for-pages-we-did-not-translate/
This topic contains 6 replies, has 0 voices.
Last updated by 3 days, 8 hours ago.
Assisted by: Dražen.
