Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 9 replies, has 2 voices.

Last updated by Marsel Nikolli 3 months, 2 weeks ago.

Assisted by: Marsel Nikolli.

Author Posts
August 2, 2024 at 9:40 am #16032536

jaronR-2

Background of the issue:
I have translated the site from Dutch to English using WPML. The site URL is hidden link. I added /en/ before all the English URLs in the translation editor.

Symptoms:
All the cases on the English cases page are still linking to the Dutch versions.

Questions:
How can I fix the issue where the English cases page links to the Dutch versions despite adding /en/ before the English URLs in the translation editor?

August 2, 2024 at 10:22 am #16032760

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

1. I've checked your website and when trying to switch languages it gives an "Internal Server Error". The same happens even when I try to open a link (without changing language).

Usually, the 500 errors (Internal Server Errors) are related to the server configuration or server limitations being reached.

Also, please take a look at this link.

Can you please try re-saving the permalinks and check if the issue persists?
- Go to WP-Admin -> Settings -> Permalinks, and click the "Save" button.

Let me know how it goes,
Marsel

August 2, 2024 at 12:48 pm #16033535

jaronR-2

Hi Marsel,

Thanks for your reply! The 500 errors are fixed now but some cases on the english cases page still link to the dutch case. And also the "next" case at the bottom of a single case links to the dutch case

I've already saved the permalinks a few times, but its not working

August 2, 2024 at 1:15 pm #16033679

Marsel Nikolli

Hi,

Thank you for the update.

1) If the issue with the 500 error continues, I suggest checking the information on this link.

2) Related to the links pointing to the wrong translations, please:
- go to WP-Admin -> WPML -> Settings -> Translate Link Targets section
- click on the button "Scan now and adjust links" and wait for the process to finish

After, clear the website cache (server-side included) and check if the issue persists.

Let me know if that works out for you.

August 5, 2024 at 10:10 am #16038742

jaronR-2

Hi Marsel,

Thanks! The 500 error is already fixed.

However, some links still aren't working correctly in the translations. For example, on the English homepage, the first four cases are linked to /en/case/.., which navigates away from the site since it doesn't include the full site URL. Additionally, at the bottom of a single case page, the link to the next case either points to /en/case/.. or to the Dutch case.

Could you look into this?

Thanks again!

August 5, 2024 at 11:07 am #16039270

Marsel Nikolli

Hi,

I would need temporary access to your website to investigate this issue and understand it better.

Please fully back up your site (files and database) and confirm it in your next reply.

I would need to access your site's WP-admin.
Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

August 5, 2024 at 1:26 pm #16040307

Marsel Nikolli

Hi,

Thank you for the access, I was able to check and could you please try translating the URLs from the WPML -> String translation section?

I've checked one of the URLs and it was showing like in the attached image.
Also, please try clearing the website's cache (server-side included).

Let me know if that works out.

Screenshot 2024-08-05 152440.png
August 5, 2024 at 2:00 pm #16040598

jaronR-2

Okay, thanks! Is it possible to translate all the URLs in bulk? There are quite a few of them.

August 5, 2024 at 3:11 pm #16040899

jaronR-2

We tried with a few URLs but it's still not working. Could you check again how we can fix this? Thanks!

August 5, 2024 at 3:12 pm #16040901

Marsel Nikolli

Hi,

From what I noticed original link added to an Elementor widget has the complete link with all details and not a relative link.

Example: "/case/renessence/" instead of: hidden link

Try changing them to a complete link and check if the translations work, otherwise, you will need to translate them manually form WPML -> String translation.

Let me know if you have further questions or need further assistance.

Kind regards,
Marsel

The topic ‘[Closed] Translating URLs’ is closed to new replies.