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
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

Supporter timezone: America/New_York (GMT-05:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Lauren 2 hours, 30 minutes ago.

Assisted by: Lauren.

Author Posts
February 24, 2025 at 6:04 pm

davidB-301

Background of the issue:
I am trying to ensure that internal links on my site, hidden link, direct to the selected language version of the page. My default language is Dutch, and I have a second language, German.

Symptoms:
When I select the German language, all internal links still point to the default language, Dutch.

Questions:
How can I configure WPML to ensure internal links point to the selected language?
Is there a setting in WPML that I need to adjust to fix the internal linking issue?

February 24, 2025 at 7:14 pm
February 25, 2025 at 4:03 pm
February 25, 2025 at 4:04 pm #16746897

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please see my previous private reply and let me know once the migration has completed. I have also marked the next reply as private so you can share the username and password to your live site.I will not be using it to log in to your live site, only to the migrated site. Please be sure ot use the private fields and not the general reply box to share credentials securely. Thanks!

March 1, 2025 at 2:56 pm #16764066

davidB-301

I'm sorry, I missed your reply.
The migration is complete. I hope you can figure out a solution...

March 3, 2025 at 7:22 pm #16770635

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thanks for the update on the migration. I accessed the test site and deactivated all non WPML plugins. THen I updated the homepage translation With these settings, all of the internal links are automatically working as expected. Please feel free to use the test site to enable the other plugins and see if you can find anything that is conflicting if the issue returns. To do this, I suggest activating other plugins one or a few at a time to see if/when it happesn again. Please let me know the results. hidden link

March 4, 2025 at 8:35 pm #16775917

davidB-301

Thanks for looking into this. I tried the same on the live site.
I deactivated all plugins, except the two that are also enabled on the test site. The i resubmitted all page for translation, but the issue isn't fixed.

I burned all the credit on the live site, so I can't use automatic translation anymore because of all the debugging, and all the attempts to fix the links.

Automatic translation isn't working on the test site either because of the lack of credit.

I'm stuck at the moment. The only thing I can think of is the tedious job of fixing all links by hand...

I hope you have some options for us to try again.

March 5, 2025 at 3:34 pm #16779727

davidB-301

And even on the test site it doesn't work. Take this page for instance: hidden link
When I translate it to German : hidden link, all the links on the page still refer to the Dutch Language (Without the '/de'-part in the url)

March 5, 2025 at 3:50 pm #16779755

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

On the test site, I went tp edit this page hidden link. I didn't make any actual change, just clicked on a link to view the link and then clicked Update/Save. Next, I saw the German translation icon changed to an arrow circle, indicating it needs an update. So I opened the German translation, noticed it showed 100% translated, clicked Complete. Now, when I load the German page hidden link and hover or click on the Mehr Informationen… button, it shows the correct link and opens up for example this URL hidden link which does have the /de/ part of it.

Can you outline step by step what you are doing on the test site when you are not seeing the change? Have you manually updated a page (without making actual changes) to see if this resolves it? Because if this works, then you can simply bulk update your pages. Please test my steps on both the staging site and the live site and let me know the results.

March 5, 2025 at 9:26 pm #16780647

davidB-301

On the test-site that options seems to work, but I have to open every page, and edit, and save alle the links, and the save the page.

On the Live site I did the bulk translation WPML -> Translation Management, and then select all the pages, and the chose the option of "Automatic translation"
As I ran out of credit trying to fix the broken links doing the bulk translation multiple times, some page have the status 'German: not translated'

Automatic translation, even page-by-page, doesn't work as I ran out of credit. Ik can't test the bulk update on the test website, as it also has not enough credit.

I am not looking forward opening every page, open the translation, edit the links, and save the translation. But if that's the only way as the bulk translation doesn't update the links, than that's just what i have to do. Only problem is the pages with the status of 'not translated', as the translation is empty, en de credit are burned during trial-end error.

Can you please help me forward?

March 6, 2025 at 3:29 pm #16784406

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I was actually referring to a bulk update, not bulk translation. Meaning, go to the list of Pages, check some pages, then from the drop down bulk edit the pages. Then use the admin langauge switcher to do the same for your second language. Can you test that on a handful of pages and see if it works?