[Resolved] The NL pages does not show when selected
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.
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?
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.
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.
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.
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.