Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to keep the URL in English while changing the site content language, but when you switch to a different language, the URL changes as well.
Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Go to WPML-> Settings-> Translated documents options-> Page URL
2. Select Copy from original language if translation language uses encoded URLs
3. Save
4. Go to WPML-> Languages-> Edit Languages
5. Select "Yes" in the Encode URLs menu
6. Save
After completing these steps, please create a new test page and translate it to check if the URL remains in English.

Please note that this solution might be irrelevant if it’s outdated or not applicable to your 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 the issue persists, please open a new support ticket.

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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Osama Mersal 4 months ago.

Assisted by: Osama Mersal.

Author Posts
July 17, 2024 at 11:28 am #15965814

nathanB-19

Background of the issue:
I am trying to show all URLs on my site, even the translated pages URL in English. When I switch to a different language the URL also changes. I do NOT want the URL to change. Only need the site content to change language and URL to remain the same.

Symptoms:
The URL changes when switching to a different language.

Questions:
How can I keep the URL in English while changing the site content language?

July 17, 2024 at 11:40 am #15965917

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please check the following steps:

1- Go to WPML-> Settings-> Translated documents options-> Page URL
2- Select "hidden link">Copy from original language if translation language uses encoded URLs"
3- Save
4- Go to WPML-> Languages-> hidden link">Edit Languages
5- Select "Yes" in the hidden link">Encode URLs menu
6- Save

After that, please create a new test page and translate it to check if the URL will be in English.

Best regards,
Osama

July 22, 2024 at 4:37 pm #15988046

nathanB-19

I have tried the fix but I want the fix for existing pages/url's.

It does not seem to work for the existing translated pages. How do i fix that?

July 22, 2024 at 4:40 pm #15988054

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please try the following steps:

1- Edit the page in the default language
2- Add "V2" to the title and update the page
3- Delete the "V2" and update the page
4- Upadte the page's translation using the Translation Editor

If the above steps don't help, you might need to manually change the existing translated slugs, but the steps I shared in my previous reply will fix the issue with the new content.

Best regards,
Osama

August 2, 2024 at 8:58 am #16032256
nathanB-19

To check if the fix worked I created new pages. Then i tried to translate the pages to see if it translates only the content but not the url. But now it gives the error "Translation jobs cancelled"

New threads created by Osama Mersal and linked to this one are listed below:

https://wpml.org/forums/topic/translation-jobs-cancelled-7/

image(1).png
August 3, 2024 at 9:41 am #16035236

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

This is a different issue, and I don't think it's related to the URL translation.

We try to keep one issue per ticket in our forum. Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.

Therefore, I've split the other issue and created a new ticket with this issue.

Best regards,
Osama