Saltar navegación

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 -
- 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 -

Zona horaria del aficionado: Europe/Rome (GMT+01:00)

Este tema contiene 1 respuesta, tiene 2 voces.

Última actualización por Alejandro hace 11 meses, 3 semanas.

Asistido por: Alejandro.

Autor Entradas
enero 9, 2024 en 8:15 am #15163233

pabloD-14

When I click on the language that is already selected, it sends me to the site's home page. Only on dynamic pages. And for some of my sites within a multisite website

In this url enlace oculto When I click on English it sends me to home instead of doing nothing

Screenshot 2024-01-09 091331.png
enero 9, 2024 en 10:21 am #15163841

Alejandro
Supporter

Idiomas: Inglés (English ) Español (Español ) Italiano (Italiano )

Zona horaria: Europe/Rome (GMT+01:00)

Hello,

What do you mean "instead of doing nothing"?

The language switcher by default removes the languages that are not translated yet, but there's an option to send them to the home of that language if it doesn't exist. those are the only 2 options available for this behaviour.

It seems this language switcher is a custom one, maybe from the theme and it's pre-set to send you to the home if no translations are made.

There's no such thing as "do nothing" on a URL because that would make the user believe the site is broken.

If you do not want to translate this page, you can duplicate it so the link points to the correct place on each language and still shows the same content: https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#duplicating-content

Regards.

---------------------
NOTA: Si lo deseas podemos continuar en Español ya que has creado el ticket en el forum ES.

El tema '[Cerrado] menu language switcher When I click on the language that is already selected, it' está cerrado a nuevas respuestas.