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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Bigul 1 day, 5 hours ago.

Assisted by: Bigul.

Author Posts
November 19, 2024 at 2:01 am #16417239

compliant-learning-resourcesP

Background of the issue:
We are using WPML and experiencing issues with AHREFS site audit when we enable the 'Browser Language Redirect' feature on our site hidden link.

Symptoms:
We are getting Hreflang and HTML lang mismatch errors on AHREFS site audit.

Questions:
Do you have any suggestion/s on how to fix the Hreflang and HTML lang mismatch errors?

November 20, 2024 at 7:27 am #16422402

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

While waiting for one of my colleagues to help you, please review the following.

Visiting this page -> hidden link

I can verify that the HTML lang is matching pt-br and the HREF lang is correctly referencing.

Please see my screenshot.

You can also review the source directly here:
view-source:hidden link

Screen Shot 2024-11-19 at 11.25.24 PM.png
November 20, 2024 at 10:28 pm #16426640

compliant-learning-resourcesP

Hi, 'Browser Language Redirect' feature is currently disabled on our site since it causes errors on AHREFS site audit.

November 21, 2024 at 5:32 pm #16430507

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. This is an expected result. Because when *Browser language redirect* the option is enabled, it may affect the Google Indexing. Please refer to following documentation for more details.

https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/

https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/how-browser-language-redirect-affects-google-indexing/

--
Thanks!

Bigul