Skip to content Skip to sidebar

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
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

Tagged: 

This topic contains 13 replies, has 1 voice.

Last updated by Prosenjit Barman 1 month, 1 week ago.

Assisted by: Prosenjit Barman.

Author Posts
March 6, 2026 at 2:55 pm #17878092

kostasT-3

WPML French Redirect Bug — Full Debugging Summary
The Problem:
On the homepage of greekexclusiveproperties.com, an Elementor HTML widget contains links to taxonomy pages. When clicked, taxonomy links get redirected to the French version (e.g. /fr/property-type/villa-greece/) instead of staying in English. The page source confirms WPML is rewriting the URLs server-side before delivery — the /fr/ prefix is already baked into the HTML before any click.
Key Facts:

The exact same taxonomy URLs work perfectly in the site navigation menu
Only taxonomy URLs get rewritten (/property-type/ and /property-city/) — regular page URLs inside the same widget are fine
The problem affects all visitors, not just logged-in users
The homepage is correctly set to English in WPML
Detect browser language is OFF in WPML
URL format is correct: English has no prefix, French uses /fr/
"How to handle languages without translation" is set to "Skip language"
"Preserve URL arguments" field is empty

Everything tried that did NOT work:

notranslate class wrapper around the entire widget HTML
Converting all absolute URLs to relative URLs in the widget
PHP filter: wpml_link_converter_enabled returning false on front page
PHP filter: wpml_current_language returning 'en' on front page (priority 999)
PHP filter: wpml_link_converter_convert_url returning false on front page
PHP filter: wpml_browser_redirect_language returning false
JavaScript click interceptor via wp_footer to strip /fr/ prefix on click
JavaScript load-time href rewriter via wp_footer
Setting Property Types and Property Locations taxonomies to "Not translatable" in WPML settings
Fixing duplicate slugs — French taxonomy terms renamed with -fr suffix, German with -de suffix
Adding / to WP Rocket "Never Cache URLs" to prevent homepage caching
Enabling Cloudflare Development Mode to bypass CDN cache
Deactivating DCX Cache Guard plugin
Multiple full cache purges (WP Rocket + Cloudflare) throughout testing
Elementor widget before_render_content hook to remove WPML filters
Changing "How to handle languages without translation" from "Link to home of language" to "Skip language"
Clearing lang from "Preserve URL arguments" field

Site Setup:

WordPress + Elementor
WPML (English + French + German), English has no URL prefix, French uses /fr/, German uses /de/
WP Rocket caching
Cloudflare CDN
WPCode for PHP snippets
RealHomes theme (real estate)

What has NOT been tried yet:

Direct database deletion of WPML translation records from wp_icl_translations table for tax_property-type and tax_property-city where language_code IN ('fr', 'de')
WPML String Translation — registering the widget HTML as a fixed English string
Contacting WPML support directly with this specific Elementor HTML widget conflict
Checking if RealHomes theme has its own WPML integration that overrides standard filters

March 6, 2026 at 10:06 pm #17878697

kostasT-3

"I noticed that when I change in WPML the property type to not translated, then the proeprty type that mains only active is the french. Also the problem occurs not only in the home page hpml widget but also n every saved template I have in proeprties again at the html widget, lastly, th elocation taxonomy has the smae problem, at the properties at the upper left corner where the city link appears"

that new detail changes the diagnosis quite a lot.

What you are describing now points much more strongly to a taxonomy translation configuration / taxonomy mapping problem inside WPML, not just an Elementor HTML-widget problem.

Why:

When you set the taxonomy to “Not translatable” and WPML leaves only the French version effectively active, that suggests WPML’s stored language relationships for those taxonomy terms are already inconsistent or the site’s taxonomy language setup is no longer aligned with the current default-language structure. WPML has documented multiple fixes around taxonomy term synchronization and incorrect translated term behavior in past releases, including issues where taxonomies or terms were not synchronized correctly depending on language/default-language conditions.

Also, the fact that the same issue appears in:

homepage HTML widgets,

saved Elementor templates,

and the property city link shown dynamically on single property cards/pages

means the problem is not limited to one widget’s raw HTML. It is affecting both:

manual taxonomy links inside HTML, and

dynamic taxonomy permalinks generated by the theme/plugin.

That is the biggest clue.

What this most likely means

At this point, the strongest candidates are:

1. Corrupted or mismatched WPML taxonomy translation records
for property-type and property-city.

Because the issue now affects dynamic city links too, WPML is likely resolving taxonomy terms through its internal term-language mapping and returning the wrong language permalink.

2. Wrong WPML setting for those taxonomies
such as a bad combination of:

translatable / not translatable,

display as translated,

taxonomy slug translation,

existing translated terms that should no longer exist.

3. A RealHomes + WPML compatibility path
for property city/property type links that still reads translated term mappings even after you changed settings.

The most important conclusion

Because the upper-left city link on properties is also wrong, this is no longer just:

“WPML rewrites URLs inside Elementor HTML.”

It is now more like:

“WPML thinks the active/target language version of these taxonomy terms is French, or the taxonomy term translation table is inconsistent.”

That fits your observation far better.

What I would do now
1) Do not keep property-type or property-city as “Not translatable” yet

If switching them to not translatable causes French to remain as the effective surviving version, that is a bad sign. Leave them in the normal translated mode for now until the mappings are cleaned.

2) Inspect WPML taxonomy translations directly

This is now the next proper step.

You need to inspect records for:

tax_property-type

tax_property-city

inside wp_icl_translations

You are looking for:

English terms whose source/default language mapping is broken

French terms incorrectly acting as originals

missing English originals with French as the canonical row

duplicate translation groups (trid) for the same logical term

3) Check WPML Taxonomy Translation screen carefully

Go to WPML’s taxonomy translation interface for both taxonomies and confirm:

which language WPML thinks is the original for each term

whether English terms actually exist as originals

whether French/German terms are attached to the correct English source terms

whether slug translations are mismatched

WPML notes that taxonomy slug translation exists as a separate capability, so wrong slug-language pairings can also contribute to bad term URLs.

4) Re-save the affected English terms

For a few affected property types and cities:

open the English term

update slug/name without changing meaning

save

then verify attached French/German translations

This can sometimes expose whether WPML is treating the wrong language as the source.

5) Rebuild one affected Elementor template translation manually

WPML support has specifically noted that links inside Elementor widgets / HTML / similar structures sometimes need manual correction in the translation editor, and that auto-adjustment is not always enough.

But in your case, this is now a secondary symptom, not the root cause.

My current diagnosis

Based on everything together, I would rank the causes like this:

Most likely: broken taxonomy language mappings in WPML for property-type and property-city

Second: RealHomes theme pulls taxonomy permalinks through WPML using those broken mappings, so dynamic city/type links come out French

Third: Elementor HTML widgets/templates are separately inheriting the same wrong taxonomy target language during translation/render

What not to waste time on anymore

I would stop testing:

JS click fixes

CSS tricks

cache-only theories

more homepage-only fixes

more wp_footer URL rewriting

HTML widget wrappers like notranslate

Those are not the root issue if dynamic property city links are also wrong.

March 7, 2026 at 8:10 am #17879018

kostasT-3

I have provided you all the detials I can.I have created 4 suport tickets months now, and I never got any serious helo from your side! I want this time now someone that will reply something in general and then reply after 3 days, I want someone that will login and solve the issue!

March 9, 2026 at 8:54 am #17881050

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi Kostas,

Thank you for contacting WPML Support. Sorry for the delay in responding due to the weekend.

I'm Prosenjit from the WPML Development team, and I will personally investigate this case carefully and do my best to help identify the root cause and get this resolved for you.

First of all, first of all very much for taking the time to provide such a detailed investigation summary. I truly appreciate the effort you put into documenting everything you tested and the environment setup.

After reviewing your report, I immediately checked the homepage of your site: greekexclusiveproperties.com

On the homepage, I located the links that appear inside the button you described:

Villas in Greece for sale, Houses in Greece for sale, Seafront Villas for sale

When I inspected these links on the live site, they currently point to the correct English URLs, and they are not being rewritten to the /fr/ version.

Because of this, I want to confirm one important detail before proceeding further with a deeper investigation.

Could you please clarify:

- Is the issue still occurring on the live site right now?
- Was WPML temporarily disabled or were settings changed while debugging?
- Is there a specific page, template, or scenario where the problem can still be reproduced?

Since you mentioned that the issue also occurs in:

- Elementor HTML widgets
- Saved Elementor templates
- Property city links on property pages

It would be extremely helpful if you could provide one exact page URL where the issue can currently be reproduced, along with a short description of what action triggers the incorrect redirect.

For example, the Page URL or the link to click, etc.

This will allow me to reproduce the behavior precisely and trace where the language switch is occurring.

Once I can reproduce the issue, I will investigate the areas and try my best to find a solution.

If needed, I may also request temporary admin access so I can inspect the configuration directly and verify if everything is configured correctly.

Our goal is to make sure WPML works reliably on your site and that you have a smooth experience managing your multilingual content. I will stay on this ticket and continue working with you until we clearly identify the cause and reach a proper solution.

Thank you again for the detailed information you provided — it really helps move the investigation forward.

Looking forward to your response so I can continue the debugging process.

Best regards,
Prosenjit

March 9, 2026 at 9:20 am #17881178

kostasT-3

Dear Prosenjit,

Thank you for your reply.

I have been trying to translate my real estate site with WPML for many years but never succesfull. Always problems occured and I had to drop it. Unfortunately, once again I am facing serious issues. The fact that previous support tickets did not resolve the problems, combined with the long response times, eventually led me to temporarily disable the WPML plugins.

The main issue is that certain taxonomy mainly links on an HTML intorduction of the homepage ( and HTML elementor templates at the end of all property listings) k redirect visitors to the French or German versions of the pages. This creates a significant problem not only for potential buyers who are searching for villas in Greece, but also for the overall SEO performance of my website.

For this reason, I kindly ask you to review the matter carefully and assist me in resolving it properly this time.

I can reactivate the WPML plugins so that you can investigate the issue. I am also able to provide login credentials or create a temporary administrator account for your access. However, I will need to disable the plugins again when the investigation is not actively taking place.

To clarify my objective: I do not require a full translation of the website. I only need the basic structure translated — specifically the taxonomies, tags, and landing pages. The property listings themselves (more than 2,000 properties) should remain in English and should not be translated.

I had also a problem couple weeks ago, that my property search bar in the trasnlated languages, didi show the "Property Features" although seemed to be correctly translated. Since Iw as dissapointed from the WPML support, I managed to find a solution with ChatGpt.

Also in the past , the taxonomy links ( location and type) were redirectlying to my translated languages, so a ichanged them with direct links, and solved this issue.

So the problem I was facing this time was manily in th eHTML widgets of Elementor and the taxonomy links inside. I can live with just one problem, the" Property city" link that appear at the top of each property listing. But I cant live with the HTML Intro of the homepage or landing pages, or the HTML text at the end of each property with wrong redirects.

One last thing that might help you. When I tried to hide just the translation laguages, in a taxonomy, the one that was remaining active was not the main language English, but the French. Something that probably shows that WPML, for some reason fosly had in its behavior wrong language as the main original language. It might be a bug I dont know and need someone to make a database inspection of the WPML taxonomy mappings.

Please let me know when you are ready to log in and investigate the issue so that I can temporarily reactivate WPML. I iwll have to deactivate them again when you are not workng on my issue ( for the reasons I explained)

Kind regards,
Kostas Taralas

March 9, 2026 at 11:48 am #17881764

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi Kostas,

Thank you for your detailed explanation, and I’m sorry to hear about the difficulties you’ve experienced while trying to use WPML on your site. I completely understand how frustrating it can be when issues persist for a long time, especially when they affect important areas such as taxonomy links and SEO behavior.

From your description, the main concern seems to be that taxonomy links placed inside HTML content (Elementor HTML widgets, templates, or property descriptions) are redirecting visitors to the French or German versions instead of staying in English.

To properly investigate this, I would indeed need temporary access to the site with WPML active. Your suggestion works perfectly — you can enable the WPML plugins while I’m investigating, and disable them again afterward if needed.

To proceed, could you please:

- Reactivate the WPML plugins temporarily.
- Share administrator access (you can create a temporary admin user if you prefer). I enabled the private box so that you can securely share the access.
- Let me know which specific pages or templates contain the problematic HTML taxonomy links (for example: the homepage intro, landing pages, or Elementor templates at the end of property listings).

Once I have access, I will inspect the taxonomy language mappings in the database and also check how the taxonomy URLs are generated inside Elementor HTML widgets. Please note that I'll only keep the WPML plugin active while I'm investigating.

After the investigation, I will share the findings and the safest way to configure the setup so the taxonomy links always point to the correct language without affecting your listings or SEO.

Please let me know when WPML is enabled and the access details are available, and I will begin the investigation right away.

Best regards,
Prosenjit

March 9, 2026 at 1:16 pm #17882068

kostasT-3

Thank you, Barman. Here is the admin login link for my website. I have reactivated the three WPML plugins: CMS, String Translation, and SEO.

Please note that because the trnalsated taxonomies in my main Property Search Box were appearing in French and German, I had to delete those translations. If needed, I can recreate some translations now.

hidden link

March 9, 2026 at 2:01 pm #17882267

kostasT-3

Dear Barman, give me some time to evaluate. Becaue now that I re activated WPML, and re translated the taxonomies, I dont see a problem yet ( besides the menus in the translated languages that lost their style and I have to put them again in the right order)

March 10, 2026 at 7:38 am #17884156

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hello Kostas,

Thank you for the update.

I checked the homepage, including the buttons above the search section, and I can confirm that the links are currently pointing to the correct pages. WPML also appears to be active at the moment, and during my checks I did not experience any unexpected redirects. So far, everything seems to be working correctly from my side.

That said, let's not draw a final conclusion too quickly. It would be best to monitor the behavior a bit further to make sure the issue does not return intermittently.

Please continue checking the links on your side as well. If you notice any incorrect redirection again, just let me know which page or button is affected, along with any relevant details, and I will investigate further.

There is no rush — please take your time and let me know whenever you are able to reproduce the issue again.

Thank you for your cooperation in this matter.

Best regards,
Prosenjit

March 10, 2026 at 11:48 am #17885121

kostasT-3

i get this warning on th ebackend but i am afraid to do this cause I am really afraid that will mess things again. Some taxonomy terms are out of sync between languages. This means that content in some languages will not have the correct tags or categories.

In order to synchronize the taxonomies, you need to go over each of them from the following list and click the "Update taxonomy hierarchy" button.

Property Types

Property Locations

Screenshot 2026-03-10 at 13.47.09.png
March 11, 2026 at 7:07 am #17887521

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi there,

I completely understand your concern.

The Hierarchy Synchronization option is there to ensure that taxonomy parent/child relationships stay consistent across all languages. For example, if you change the hierarchy of a taxonomy in the default language, this option makes sure the same hierarchy is updated in the translations as well.

In most cases, this is helpful and keeps the taxonomy structure aligned correctly. However, if your URL structure also depends on the taxonomy hierarchy, then changes in the hierarchy could potentially affect how URLs are generated. That said, without testing it directly, we can’t confirm whether it would cause any issue on your site.

If you are concerned about running it, the safest approach would be:

- Take a full backup of the site from a stable point first
- Run the Hierarchy Synchronization
- Check whether everything remains stable afterward

If anything does not look right, restore the site from the backup and share the backup with me, and I can install it in my local environment to investigate whether the hierarchy synchronization is actually contributing to the issue

So yes — it is reasonable to be cautious, but with a proper backup in place, you can test it safely.

I hope this helps and gives you a bit more confidence. Please feel free to let me know if you have any questions or need further assistance — I’ll be happy to help.

Best regards,
Prosenjit

March 14, 2026 at 1:10 pm #17897364

kostasT-3

Dear Prosenjit,

Although I didnt do anything, one of the buttons of the intro Elementor HTML Widget, started to lead to German translation !

This is the button "Villas for Sale Greece" in the intro text of the home page.
I dont know why only this type taxonomy does that now all of a sudden.

When you are able, let m eknow to create an admin link for you to check what we can do about it.
Just please note that the site is big and heavy and taking backup and restore the backup is not easy.

I would like to avoid it.

Screenshot 2026-03-14 at 15.07.48.png
March 14, 2026 at 1:36 pm #17897399

kostasT-3

I used this snippet to force the button to remain in English ( and to kill german and french trasnaltion for this link/button) : add_filter('wpml_sl_blacklist_requests', 'grex_wpml_blacklist_requests', 10, 2);

function grex_wpml_blacklist_requests($blacklist, $sitepress) {
$blacklist[] = 'property-type/villa-greece';
return $blacklist;
}

March 16, 2026 at 5:50 am #17898707

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi there,

I hope you’re doing well, and sorry for the delayed response over the weekend.

Thank you for the update. I completely understand that taking a backup is not the preferred option in this case.

I wanted to check one thing first: is the WPML Sticky Links plugin active on your site?

The hook you used to work around the issue belongs to the Sticky Links plugin, so if using that hook resolves the problem, it suggests that Sticky Links may be modifying the links in the background.

Could you please check the following:

- Go to WPML → Sticky Links
- Disable the option “Turn links in Sticky Widget”

Save the changes

Then test again and see whether the issue still occurs

If the issue still persists after that, then another possible cause could be the “Display as translated” setting for the affected post type or taxonomy. In that case, a closer inspection will be needed to identify the exact root cause.

To continue the investigation properly, please share access to the site in your next reply. I’ve enabled the private reply box so you can share the details securely.

Looking forward to your response.

Best regards,
Prosenjit

The topic ‘[Closed] WPML French Redirect Bug — Full Debugging Summary’ is closed to new replies.