Skip Navigation

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

Problem:
The client was experiencing issues with links on their tri-lingual website (English, Swedish, and German) using Kadence blocks. The links on the Swedish and German pages were incorrectly leading to the English subpages. They suspected the issue was related to the translation of page names and provided a list of incorrect translations and dysfunctional links.

Solution:
We recommended the following steps:
1. For the Kadence 'Advanced Gallery' block not being translated, we provided a custom XML configuration to add to the 'WPML > Settings > Custom XML Configuration' section:

<gutenberg-block type="kadence/advancedgallery" translate="1">
      <key name="imagesDynamic" />
</gutenberg-block>

2. We advised using relative URLs instead of absolute ones for internal links and provided a link for more information on relative vs absolute URLs: https://www.seoclarity.net/resources/knowledgebase/difference-relative-absolute-url-15325/
3. For the incorrect translations and dysfunctional links, we suggested setting the 'Page URL' option to 'Auto Generate' or 'Copy' instead of 'Translate' to maintain consistent URLs across languages.
4. We updated the 'https' protocol in the database and executed the 'Translate link targets' function in WPML to ensure correct internal link functionality.
5. We recommended keeping the current setup of different languages in directories for better SEO rather than switching to language parameters in URLs.

If these solutions do not apply to your case, or if they seem outdated, we highly recommend checking the 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 problem persists, please open a new support ticket for further assistance: WPML support forum.

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 24 replies, has 3 voices.

Last updated by Prosenjit Barman 11 months, 3 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
February 23, 2024 at 9:07 am #15336632

magnusJ-15

Dear WPML team,

we have a tri-lingual page with English as the main page plus Swedish and German translations. We have created Kadence blocks to link to subpages (e.g. from general teamwear to teamwear for sports such as ice hockey, football etc).

On the Swedish and German pages, these links now lead to the English subpages.
You can see the problem here on on our screenshot:

hidden link

Thank you very much in advance!

All the best
Senzor

Screen Shot 2024-02-23 at 09.27.34.png
February 23, 2024 at 5:47 pm #15338909

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

Please check this documentation:
https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/

If that does not help, one of my colleagues will soon come to continue support.

February 24, 2024 at 6:07 pm #15340782

magnusJ-15

Hi WPML, thank you for the video. This is not exactly the issue we are looking for.
We are not having issues with links outside the page.

Our malfunctioning links are WITHIN our own page, where some links to translated pages don't work.
Please help.

February 25, 2024 at 3:19 pm #15341554

magnusJ-15

Hi WPML, we still have not been able to solve the issues on the page with links WITHIN our own page. Please contact us for fixing the problem.

February 26, 2024 at 11:16 am #15343702

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Senzor,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

I understand the issue you're having and will try my best to assist you in this matter.

Normally, internal links should automatically update to reflect the available translations. If this isn't occurring as expected, could you try using a relative format for the page link and check if that helps to solve the issue? Here's what you have to do:

- Open the page in the Editor.
- Edit the info box
- In each box, add a link to the page in relative format. For example: add '/bandy' in the URL field instead of the full URL: hidden link
- If possible, please also try adding the page dynamically in the link field(Screenshot: hidden link)

Once you've updated the link, please save your changes and update the translation. Then, check if this adjustment has helped to solve the linking issue.

Please feel free to let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

February 26, 2024 at 3:42 pm #15345163

magnusJ-15

Dear Prosenjit,

thank you for your reply.

Do we have to do this on EVERY page that is affected?

There are 9 teamwear pages with 15 links to the teamspirit pages.
Plus 15 teamspirit pages with 9 links.
Plus the welcome & contact & general pages with 15 + 9 links.

Are you certain there is not a general solution? We have tried updating and mending links, and frustratingly enough, it does not work or bounce back.

One problem we believe to have found are pages with hyphens in the url (e.g. ice-hockey or ice_hockey).

Before we dedicate hours to fixing links - which should be working as a matter of course, the multilingual functionality is the main reason why we are paying for WPML - please look into this.

At the moment, we look unprofessional since clicking on a Swedish or German link sometimes bounces visitors back to the English version of that page - NOT GOOD.

All the best
Senzor

All the best
Carmen

February 26, 2024 at 3:58 pm #15345264

magnusJ-15

Hi again,

there is a more serious issue than just individual links.

Please look at the 3 language versions of the same page here:

English
hidden link

Swedish
hidden link

German
hidden link

On the bottom, you find a box with links to 9 sports (bandy, basketball...). This box was dysfunctional.

In English we took it away > it is gone.
In Swedish it is still there > WHY???
In German there is a list instead

So the pages don't sync between translations!
Please help.

Thanks
Senzor

February 27, 2024 at 7:51 am #15347493

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Senzor,
Thank you for the update.

I totally can understand the time it takes to update each link individually, but my aim was to see if updating the link in one place would resolve the issue. This method allows us to understand whether the problem lies with how WPML has set the link target or if there's another underlying cause. FYI, underscore can be used on slug and it shouldn't cause any issue.

However, since you have tried already and that didn't result positive, please try the following:

- Please go to WPML > Support > Troubleshooting
- Select "Page" from the dropdown under Cleanup section and click on "Synchronize Post Taxonomy"
- Once the process is completed, do the same for "Post"
- After that, please click on the following buttons to ensure that the language and other information have been propagated correctly to the translations:

-- Clear WPML Caches
-- Set language information
-- Fix post-type assignment for translations

- Next, go to "WPML > Settings" and scroll down to the "Translate Link Target" section.
- Click on the "Scan not and adjust link" and wait till the process is completed.
- Once done, please clear the caches from your site, server, and browser and check the page again. If you have enabled Object caching, ensure to clear the object caches as well.

Regarding the problem of removed links still appearing in translations - after deleting the links from the primary language page, did you update the translation? It's essential to update the translation whenever changes are made to the original page, even if something is deleted, to ensure the changes are accurately reflected in the translated versions.

If the translation has been updated and the issue persists, then please clear the caches and check again.

However, if you have added the translation manually(From WordPress Editor), then you need to edit the translation and remove the section manually.

I hope you can understand. Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

February 28, 2024 at 8:23 am #15352250

magnusJ-15

Hi Prosenjit,

thank you - we tried your recommendation. Some links are fixed, others are now worse (linking to English instead of Swedish). It seems there is some general setting that overrides whatever we do in terms of repair.

For example on hidden link the links in the "flip menus" (where the photos turn when hovering) now ALL go to the English page with the exception of icehockey.

This is very annoying - the Swedish language is for our main target audience.
We look unprofessional when visitors bounce back to an English page!

We are presently on this setting:
Different languages in directories ( (hidden link - English, hidden link - German) )

Would it help to switch to this:
Language name added as a parameter (hidden link - German)

How else can we fix this globally?

All the best
Senzor

February 29, 2024 at 3:29 am #15356236

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Senzor,
Thank you for the update. Glad to hear that some links are working properly now.

You mentioned that the links on the Swedish page were redirected to the English version of the page. However, upon reviewing each link on the Swedish version of the homepage, particularly within the Flip menu, I can confirm that all links now correctly direct to the Swedish version of the page. I did not find any links that incorrectly lead to the English version of the page. Please check this video for a better understanding: hidden link

If you're still experiencing issues with the links not functioning correctly, it's possible that cached data from before is still being used. Could you kindly clear your site and browser caches and then recheck?

Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

February 29, 2024 at 12:48 pm #15358087

magnusJ-15

Hi Prosenjit,

this is unfortunately only partially true, and we're pretty worried about the reasons & how to find a remedy.

Our welcome page hidden link has several issues:
Quite far up we have a menu with 3 pictures next to each other linking to teamwear, team spirit, team analytics. All go to English.
On the flip menu for teamwear, 8 are ok, 1 (Carmaflage yoga) goes to English.
On the flip menu for team spirits, out of 15 items 13 are ok, 1 (tights & leggings) has a 404 error, another one (baseball caps) leads to a news post.

On the Swedish main page for teamwear hidden link, we have a blue ribbon menu underneath the header photo leading to different fan articles.
Here, the item carpets leads to towels.

Frankly, chasing these errors is very exhausting, especially since we feel we don't really have a remedy. In addition, we're running an SEA campaign, so looking unprofessional is not only annoying, but also costly.

And that was only the first page - we have many many more.
On the weekend, we will go through everything, make a list of what's flawed.

But in essence, we're disappointed and disheartened.

All the best
Senzor

March 1, 2024 at 3:55 am #15360909

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Senzor,

I'm truly sorry to hear about the challenges and frustrations you're facing. Ensuring customer satisfaction is paramount to us, and I have been committed to providing the best possible solutions to address the issues you've encountered. While I hoped my previous suggestions would bring some improvement, it's clear that there are still some concerns that need to be resolved.

Upon a more detailed examination, it appears that the site's recent migration to the main domain may have caused issues with links, such as links incorrectly pointing to a subdomain or not updating as expected. Please rest assured, that there is a solution for every problem, and I am fully prepared to delve deeper into these specific issues to find a resolution.

To facilitate a thorough investigation, I kindly request temporary access to your site's wp-admin and FTP. This will enable me to gain a better understanding of the underlying problems. If possible, it would be ideal to have access to a testing environment where these issues can be safely replicated.

You will find the needed fields to share the access information below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Furthermore, I may need to temporarily install a plugin, such as “Duplicator” or "All in One WP Migration," to create a copy of your site for local troubleshooting. I assure you that any local copies of your site will be deleted once the issue is resolved. Please let me know if this approach is acceptable to you.

IMPORTANT:
- Please ensure that you have backed up all site files and the database before granting access.
- If the wp-admin/FTP fields are not visible, this means any information you post could become PUBLIC. Please do not share your website details under these circumstances. Instead, notify me to enable the private submission option. The private submission box look like this: hidden link.

Looking forward to your response and greatly appreciate your cooperation and patience as we work together to resolve these issues.

[To maintain clarity and organization in each thread, we are allowed to discuss one issue per topic. If you are having issues other than links, please feel free to create a new ticket for the issues. Me or one of our supporters will take over the ticket and provide the necessary assistance to resolve the matter.]

Best regards,
Prosenjit

March 4, 2024 at 5:49 am #15367510

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Magnus,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Thank you for providing the login details. However, I'm encountering difficulty logging into your site with the credentials shared. It appears that the WordPress.com login feature is active on your site, and I'm receiving an error (hidden link) when trying to log in using the information you've shared.

Would you please check and share the correct login details? I have kept the private field enabled for you so that you can securely share them. Looking forward to your response.

Best regards,
Prosenjit

March 4, 2024 at 9:44 am #15368473

magnusJ-15

Hi - just to illustrate there are multiple issues with pages not being indexed, resulting in 404 errors etc.
We're really very unhappy with WPML at the moment.

Screen Shot 2024-03-04 at 10.43.36.png
March 5, 2024 at 3:48 am #15372504

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi Magnus,

Thank you for granting admin access. I apologize for any frustration you're experiencing with WPML; please know that I'll try my best to solve the issue with links for you.

According to our support guidelines, we address one issue per thread for efficiency and clarity. Could you kindly open a separate ticket for any additional concerns? This will ensure that each issue receives the dedicated attention it deserves from our support team.

Currently, my focus is on resolving the internal link issue you've highlighted. I am actively working on this and will keep you updated with any progress or information I uncover.

Your patience and cooperation are greatly appreciated as we work towards a solution.

Best regards,
Prosenjit