Title: WPML language switcher incompatibility
Last modified: March 11, 2019

---

# WPML language switcher incompatibility

 *  Resolved [begoodinweb](https://wordpress.org/support/users/begoodinweb/)
 * (@begoodinweb)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/wpml-language-switcher-incompatibility/)
 * Hello,
    I have exactly the same issue as in this other topic ([https://wordpress.org/support/topic/problem-with-wplm-and-canonicals/](https://wordpress.org/support/topic/problem-with-wplm-and-canonicals/)),
   but the WPML version in the latest one. The URL offered by the language switcher
   gives 2 / and remains on the ES version when you want to go back to the EN URL(
   it’s ok to the default lnaguage -> FR). [https://www.galvaunion.com/es/ch-poitiers](https://www.galvaunion.com/es/ch-poitiers)
 * It seems that all the pages ES and EN that are children pages but with a direct
   URL like domainename.com/pagename have the same issue.
 * Example, this page [https://www.galvaunion.com/es/mediatheque](https://www.galvaunion.com/es/mediatheque)
   works fine as it’s a root page.
    But [https://www.galvaunion.com/es/mediatheque-videos](https://www.galvaunion.com/es/mediatheque-videos)
   that is a child of mediatheque, doesn’t, such as [https://www.galvaunion.com/es/ch-poitiers](https://www.galvaunion.com/es/ch-poitiers)(
   sub child page).
 * Thank you in advance for your help solving this.
    Regards Chris
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwpml-language-switcher-incompatibility%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wpml-language-switcher-incompatibility/#post-11602951)
 * Hi [@begoodinweb](https://wordpress.org/support/users/begoodinweb/)
 * Sorry for the delay in my response. Are you still facing this issue or is it 
   resolved for you?
 * I have checked the pages and looks like that there is no issue. I believe you
   have already resolved this issue either from the WPML support or removing this
   plugin. Not sure what you have done and would like to know and make it fixed 
   if I can.
 * Sami
 *  Thread Starter [begoodinweb](https://wordpress.org/support/users/begoodinweb/)
 * (@begoodinweb)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wpml-language-switcher-incompatibility/#post-11602989)
 * Hello Sami,
    Thank you for your reply. No there is still the issue. If you go
   on [https://www.galvaunion.com/en/mediatheque-videos](https://www.galvaunion.com/en/mediatheque-videos)
   or on [https://www.galvaunion.com/en/sites-galva](https://www.galvaunion.com/en/sites-galva)(
   2 examples among a lot of pages)
 * Going to the French (default language is ok), but going to the ES version is 
   not possible as the URL is replaced by [https://www.galvaunion.com//en/mediatheque-videos](https://www.galvaunion.com//en/mediatheque-videos)
   with double slash and still the “EN” directory.
 * Till there is no “patch” on your module or on WPML, i tried to put a redirection
   of //en/ to /es/ (and also true for //es/ to /en/).
    But : 1. it’s not a solution
   and i get errors from google search console and logs 2. this redirection is only
   working if i’m logged in. So normal visitor can not use it.
 * I hope you can find a solution.
    Best regards. Chris
 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wpml-language-switcher-incompatibility/#post-11603052)
 * Hi Chris,
 * Sorry, I misunderstood. As you are given the reference of the Canonical issue
   so I was checking that rather than a switcher.
 * I can not check this issue as I don’t have WPML installed on any of the sites.
   Have you reported this issue to WPML? If yes, then what they replied?
 * It is strange that it is working fine for `EN` but having issues with `ES`. Not
   sure why it is doing this. I may patch if it only adding double slash but it 
   is not even applying the correct language slug so that thing may not work.
 * I recommend you to open the thread for this issue on WPML and let me include 
   in it.
 * Sami
 *  Thread Starter [begoodinweb](https://wordpress.org/support/users/begoodinweb/)
 * (@begoodinweb)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wpml-language-switcher-incompatibility/#post-11603319)
 * Hi again,
    Actually it’s not working neither in EN nor in ES. Both have problems
   with each other. When there were only 2 languages (FR and EN) there was no issue.
 * I opened a thread on WPML also ([https://wpml.org/forums/topic/language-switcher-doesnt-give-the-good-url/](https://wpml.org/forums/topic/language-switcher-doesnt-give-the-good-url/))
   but for now there is no patch from them as well. And your module is still marked
   as 100% compatible (but several persons reported the same issue without any solution
   for now).
 * It seems that the issue occures because the page URL is exactly the same in the
   different language, except the language directory /EN/ or /ES/.
 * FR : [https://www.domain.com/mediatheque-videos](https://www.domain.com/mediatheque-videos)
   
   ES : [https://www.domain.com/es/mediatheque-videos](https://www.domain.com/es/mediatheque-videos)
   EN : [https://www.domain.com/en/mediatheque-videos](https://www.domain.com/en/mediatheque-videos)
   If i change [https://www.domain.com/en/mediatheque-videos](https://www.domain.com/en/mediatheque-videos)
   to [https://www.domain.com/en/mediatheque-videos-en](https://www.domain.com/en/mediatheque-videos-en)
   for example, it seems to work.
 * Maybe it can help you to understand the problem.
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WPML language switcher incompatibility’ is closed to new replies.

 * ![](https://ps.w.org/custom-permalinks/assets/icon.svg?rev=1785367)
 * [Custom Permalinks](https://wordpress.org/plugins/custom-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-permalinks/reviews/)

## Tags

 * [url issue](https://wordpress.org/support/topic-tag/url-issue/)

 * 4 replies
 * 2 participants
 * Last reply from: [begoodinweb](https://wordpress.org/support/users/begoodinweb/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/wpml-language-switcher-incompatibility/#post-11603319)
 * Status: resolved