Skip to content Skip to sidebar

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

Problem:
The client wants to be redirected to the home page when switching languages using the "custom language switcher". Additionally, the client is looking for a way to redirect only specific pages to the home page, such as the search results page.
Solution:
We explained that the current functionality to redirect to the home page when switching languages is only available if the original content does not have translations. This can be set in WPML > Settings > Language switcher options. Unfortunately, we do not have the functionality to redirect only specific pages to the home page when switching languages.

If this solution is not relevant to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our 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 Lucas Vidal de Andrade 1 year, 6 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
February 7, 2024 at 1:36 am #15274228

shinichiroS

I would like to be redirected to the top page when I switch languages using the "custom language switcher".
I would also like to know how to redirect only specific pages to the top page. (e.g. search results page only).

February 7, 2024 at 5:09 pm #15278043

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for reaching out to us. Currently, the option to redirect to the home page is only available if the original content has no translations. You can set this in WPML > Settings > Language switcher options.

I'm sorry we don't offer this functionality at the moment.

February 13, 2024 at 3:22 am #15295354

shinichiroS

Thank you for your response.
We have responded using "cookie".