Skip Navigation

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

Problem:
The client was experiencing issues with links in the product descriptions of translated product pages. These links were supposed to refer to certain collections but were redirecting incorrectly on the Italian and Spanish versions of the site. The client had already attempted to 'Scan now and adjust links' in the WPML settings and cleared the cache, but the problem persisted.
Solution:
We recommended that the client recheck the URLs when translating the product and use absolute URLs for each language version:

  • NL:
    https://gelwapen.nl/collections/gel-blasters/
  • IT:
    https://gelwapen.nl/it/collections/gel-blasters/

We also noticed that the client was using the WordPress editor to manually translate products and in the Spanish version, the absolute URL was pointing to the default language. We suggested changing it to the correct language-specific URL:

  • ES:
    https://gelwapen.nl/es/collections/gel-blasters/
  • Or use the relative URL as in other languages:
    /collections/gel-blasters/

After changing one of the URLs to the relative version, it worked properly in the frontend.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, 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 4 replies, has 2 voices.

Last updated by Long Nguyen 9 months, 3 weeks ago.

Assisted by: Long Nguyen.

Author Posts
March 5, 2024 at 7:22 pm #15376248

nathanO-5

Hi, I experience some trouble with my translated product pages. In the product descriptions I have some links which refer to certain collections. But when clicking on the link in the front-end, it seems to redirect to a different link that isn't available.

I already tried to "Scan now and adjust links" in the WPML settings menu and also cleared the cache, but without succes. It is also strange that this problem only occurs on the italian and spanish version of my site. Al of the other languages seems to work without problems.

Schermafbeelding 2024-03-05 202037.png
Schermafbeelding 2024-03-05 202135.png
March 6, 2024 at 6:39 am #15377091

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Nathan,

Thank you for contacting WPML support, I’m happy to help you with this issue.

Can you please recheck the URL when translating the product? I suggest you use the absolute URL and insert it into the product content:
NL: hidden link
IT: hidden link

Looking forward to your reply.
Thanks

March 6, 2024 at 11:41 am #15378763

nathanO-5

Hi,

Won't it be possible to use just hidden link ? For all of the other languages I also use this URL and in that case it automatically redirect to the right language of the page. Only for the italian and spanish version this doesn't seem te work.

I can change all of the url's to hidden link , but this will take a lot of time.

March 7, 2024 at 1:45 am #15381925

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

March 8, 2024 at 1:58 am #15387149

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I see the issue. You are using the WordPress editor to translate the product manually into second languages. In the Spanish language, you add the absolute URL and point to the default language:
hidden link

it should be hidden link
or the relative URL as in other languages: /collections/gel-blasters/
please check the attached screenshots.

I change the one URL to the relative one and it works properly in the frontend.

Looking forward to your reply.
Thanks

Edit product “AK-47 Gel Blaster – Azul” ‹ GelWeapons.es — WordPress 2024-03-08 08-51-22.png
Screenshot 2024-03-08 at 08.52.23 2024-03-08 08-52-53.png