Skip to content Skip to sidebar

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

Problem:
If you're experiencing an issue where clicking a button (e.g., 'Boek nu') on your multilingual site redirects to the English page instead of the expected language page (e.g., Dutch), this might be due to changes in the default language affecting the URL structure.
Solution:
We recommend following these steps to resolve the issue:
1. Edit the page in the default language.
2. Locate the button and update the link to include the correct language code (e.g.,

https://your-site.nl/nl/een-eerste-kennismaking

).
3. Save and update the page.
4. Then, go to the translation for each language and update the button link accordingly.

If this solution does not apply to your case, or if it seems outdated, 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 0 voices.

Last updated by merijnK 2 months ago.

Assisted by: Andrey.

Author Posts
May 30, 2025 at 12:06 pm #17092134

merijnK

Background of the issue:
I am trying to navigate to the homepage in Dutch and click on the button 'Boek nu'. I expect it to show the Dutch page at hidden link. The pages are all translated with the WPML Translation editor. The issue can be seen at hidden link.

Symptoms:
When I click on the 'Boek nu' button, it shows the English page instead of the Dutch page. It redirects to hidden link instead of the expected Dutch page.

Questions:
Why does the 'Boek nu' button redirect to the English page instead of the Dutch page?
How can I ensure the button links to the correct Dutch page?

May 30, 2025 at 3:00 pm #17092651

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

I noticed that the “Boek nu” button links to hidden link, which lacks the /nl/ language code. Because of this, WPML treats it as a link to the default language version of the page, which is expected behavior.

Could you please confirm how the link was added to the button? You’ll want to ensure that it points to the correct Dutch version of the page, including the appropriate language prefix in the URL.

May 30, 2025 at 5:18 pm #17092977

merijnK

THis page was created first. At that moment.
Dutch was the default language and after that the customer wanted to change the default language to English. Maybe that caused the issue of not showing the /nl/ code. Could you pelase let me kniow how I can fix this.

June 2, 2025 at 3:41 pm #17098609

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

June 4, 2025 at 7:31 am #17104841

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for providing the credentials.

Unfortunately, I cannot log in; the login or password is incorrect. Could you please check this?

The following reply is private.

June 4, 2025 at 7:58 pm #17108066

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for providing the updated information.

It appears the issue was caused by changing the default language, which naturally updated the URL structure, including the language code.

Here’s what you need to do:
1. Edit the page in the default language.
2. Locate the button and update the link to include the correct language code (e.g., hidden link).
3. Save and update the page.
4. Then, go to the translation for each language and update the button link accordingly.

I’ve attached screenshots for your reference.

Screenshot-2025-06-04-at-22-54-49.png
Edit-Page-“Home”-‹-Michel-van-Loon-—-WordPress(1).png
Edit-Page-“Home”-‹-Michel-van-Loon-—-WordPress.png
June 5, 2025 at 10:47 am #17109763

merijnK

Thanks to your guiding, I managed to fix it. Thx