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 contains 5 replies, has 2 voices.
Last updated by Shekhar Bhandari 1 year, 5 months ago.
Assisted by: Shekhar Bhandari.
Author | Posts |
---|---|
January 15, 2024 at 2:10 pm #15185736 | |
ericR-42 |
WPML is not effectively translating the location parameter in your URLs based on the language switcher. Currently, when viewing the English version of the site, the URL appears as follows: English URL: However, when switching to the French language using the language switcher, the location parameter remains unchanged, resulting in the incorrect URL: Incorrect French URL: The expected behavior is for the location parameter to be translated according to the selected language, resulting in the correct French URL: Correct French URL: Despite having translated locations in the backend, the WPML language switcher is not appropriately translating the location parameter in accordance with the selected language. This issue needs to be addressed to ensure consistent and accurate translation of location parameters based on language selection. Thanks. |
January 16, 2024 at 5:25 am #15187718 | |
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, Welcome to WPML support. I'd be happy to help you with this. Can you please preserve the urls as mentioned here: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/preserve-url-arguments-when-switching-languages/ Further, We've recently rolled out a new version of WPML plugins. Could you please update your plugins to the latest version and inform me if it resolves the issue? Our WPML updates are distributed gradually. If your websites haven't received this update yet, please be patient, and you should see it within a few days. If you want to expedite the process and receive the update immediately, follow these steps: Please remember to create a backup before updating, as a precaution. Look forward to your reply. Thanks |
January 16, 2024 at 6:18 am #15187773 | |
ericR-42 |
I added to preserve the URL, but now the language switcher is missing from the menu. |
January 16, 2024 at 7:36 am #15187971 | |
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site. So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. This info is private and available to you and WPML supporters only. Note: Look forward to your reply. Thanks |
January 16, 2024 at 7:51 am #15188035 | |
ericR-42 |
I added a location parameter in the language setting. but the location parameter from the URL does not change according to the language. this is English language URL French URL should be like location parameter does not change. |
January 16, 2024 at 11:36 am #15189577 | |
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site. So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. This info is private and available to you and WPML supporters only. Note: Look forward to your reply. Thanks |
January 16, 2024 at 12:05 pm #15189621 | |
ericR-42 |
fixed. |