• Hi there,

    great plug-in and awesome developer support!

    I have a multilanguage website with a single language blog (the default language). When the user goes to /en/blog it is redirected to /nl/blog. Is there a way to prevent this redirect? I would like the user to stay on /en/ so that when it switches to a different page, it does not need to select English again.

    Any programming solutions would be fine too, I’m well known with PHP. So I would like a way to tell polygan to not do a hard redirect.

    https://wordpress.org/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Hi

    How did you succeed to get the same slug for an English and a Dutch page? It shouldn’t be possible to obtain with Polylang.

    Thread Starter IIStevowII

    (@iistevowii)

    I didn’t. So far I was able to use different slugs for each languages.

    But for the blog I don’t need two pages either, I just don’t want the language to change (but just show the content in the default language).

    Plugin Author Chouby

    (@chouby)

    That’s not possible to do natively with Polylang. If you load, for example, English posts, the language will automatically be set to English. If you want to have the theme in one language and content in another one, then you will need to code this yourself.

    If you do so, I guess that you will need to remove or rewrite the canonical redirection mechanism from Polylang: look at ‘check_language_code_in_url’ in polylang/frontend/choose-lang-url.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stop redirect of blog page to default language’ is closed to new replies.