Skip Navigation

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

Problem:
You want to translate links to other languages using WPML, but URLs pointing to SEO Filters are getting rewritten incorrectly in other languages. For example, a URL that should appear as https://www.hyckes.com/de/produkte/hyckes-zubehoer/filter-for-hycooler-kuehlboxen/ shows up as https://www.hyckes.com/?product_cat=filter-for-hycooler-kuehlboxen on the front-end.
Solution:
We found that the WPML Translation Editor might not handle URLs associated with filter links correctly because they are not linked to actual pages or posts. To fix this, we disabled the WPML Translation Editor for the specific header template and manually updated these filter links. Please check if the URLs now display correctly on the front-end. For more details on using different translation editors, you can visit this documentation.

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. Should you need further assistance, please do not hesitate to open a new support ticket at 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 1 reply, has 2 voices.

Last updated by Noman 7 months ago.

Assisted by: Noman.

Author Posts
August 1, 2024 at 7:34 am

lucasS-30

Background of the issue:
I want to translate links to other languages using WPML. For some reason, the URLs pointing to SEO Filters get rewritten in other languages. The original URL is hidden link. I translate this in WPML to hidden link, which is a valid working URL.

Symptoms:
On the front-end, the translated URL appears as hidden link instead of the expected translated URL.

Questions:
Why are the URLs pointing to SEO Filters getting rewritten in other languages?
How can I ensure that the translated URLs appear correctly on the front-end?

August 1, 2024 at 8:38 am
August 1, 2024 at 5:06 pm #16030886

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

The WPML Translation Editor tries to automatically translate internal links. However, since these URLs are associated with filter links and not actual pages/posts, the Translation Editor may not correctly handle them, resulting in incorrect URL rewriting.

To resolve this issue, I disabled the WPML Translation Editor for the specific header template and manually updated these filter links. The URLs should now display correctly on the front-end. Could you please check and confirm?

Here is a doc for more details:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Thank you for your cooperation

August 2, 2024 at 2:51 pm #16034077

lucasS-30

I didn't know this was possible. Acceptable solution for us, thanks.