Vai al contenuto Vai alla barra laterale

Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.

Problem:
You are experiencing an issue where switching languages directly from the homepage results in an incorrect URL format, specifically adding an extra underscore (e.g., '.it__/?lang=en' instead of '.it/?lang=en'). This problem does not occur when switching languages from another page and then returning to the homepage.
Solution:
We recommend the following steps to resolve this issue:
1. Ensure all plugins, including the WPML suite, are updated to the latest versions.
2. Remove any unused plugins and clear all caches.
3. Refresh permalinks through Settings → Permalinks in your WordPress dashboard.
4. Re-test the homepage language switch.
If these steps do not resolve the issue, it may require a manual inspection of the site and server URL rewrite rules, specifically for the homepage. Additionally, review the WPML language switcher settings and homepage permalink structure, and check for any custom functions or hardcoded URLs in the homepage template.

If the problem persists or the solution seems irrelevant due to being outdated or not applicable to your case, 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. If needed, please open a new support ticket at WPML support forum for further assistance.

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Etichettato: 

Questo ticket contiene 3 risposte, ha 0 voci.

Ultimo aggiornamento da Carlos Rojas 3 settimana, 3 giorno fa.

Assistito da: Carlos Rojas.

Autore Post
Febbraio 25, 2026 alle 11:13 #17850814

lorenzoS-25

I'm having a problem switching languages ​​directly from the site's homepage. I don't know why, but the loading URL says "link nascosto" instead of "link nascosto" as is in the permalink of the duplicate page.

Oddly, the problem doesn't occur if I switch languages ​​from another page and then return to the homepage from the menu items.

To resolve this, I tried:
1 - Updating plugins and removing any I wasn't using.
2 - Downloading a plugin to clean and remove the cache.
3 - Updating the permalink and trying to clear the cache again.

The problem is still there, how can I fix it?

Febbraio 25, 2026 alle 11:23 #17850918

lorenzoS-25

I'm having a problem switching languages ​​directly from the site's homepage. I don't know why, but the loading URL says "link nascosto" instead of "link nascosto" as is in the permalink of the duplicate page.

Oddly, the problem doesn't occur if I switch languages ​​from another page and then return to the homepage from the menu items.

To resolve this, I tried:
1 - Updating plugins and removing any I wasn't using.
2 - Downloading a plugin to clean and remove the cache.
3 - Updating the permalink and trying to clear the cache again.

The problem is still there, how can I fix it?

Febbraio 25, 2026 alle 11:25 #17850936

Carlos Rojas
Sostenitore di WPML dal 03/2017

Lingue: Inglese (English ) Spagnolo (Español )

Fuso orario: Europe/Madrid (GMT+01:00)

Hi there,
My name is Carlos, and I will continue working on this ticket

Please share the access credentials to the site in the section that appears right below this chat so I can take a closer look at the issue and the configuration.

Looking forward to your message.
Regards,
Carlos

Febbraio 25, 2026 alle 12:02 #17851257

Carlos Rojas
Sostenitore di WPML dal 03/2017

Lingue: Inglese (English ) Spagnolo (Español )

Fuso orario: Europe/Madrid (GMT+01:00)

Hi there,
Thank you for sharing the credentials requested

I re-saved the permalinks, flushed the cache memory in the front page and the issue disappeared.