• Hello I have this case on my website:

    /en/about-us/ (English version)
    /quem-somos/ (original version, PTBR)

    Shouldn’t I be redirected to the English version if I added the /en/ parameter to the URL?

    Example:

    /en/quem-somos/
    Nowadays it redirects to the original page, without the parameter, how can I redirect to the English version of that page?

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,
    The redirect from /en/quem-somos/ to /quem-somos/ may be done by Polylang or WordPress itself. It depends as generally both will attempt to do it.

    If you want to redirect to /en/about/ then you’ll need to remove the canonical redirect mechanism of Polylang (look for the class PLL_Canonical and the filter pll_check_canonical_url) and WordPress (look for the function redirect_canonical() and the filter of the same name) and then you’ll need to implement your own redirect mechanism.

    • This reply was modified 1 year, 6 months ago by Chouby. Reason: typo
Viewing 1 replies (of 1 total)
  • The topic ‘If there is any parameter selecting the language then it should be redirected.’ is closed to new replies.