• Resolved Joan Artes

    (@jartes)


    Hi!

    I’ve enabled automatic redirection but only does that when a user click or go to a second url in the website. Is there any way to redirect users when they’re visiting the website in the first view?

    For example, visiting example.com (and the user has es_ES on the browser config) redirect to example.com/es automatically.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    well, redirection should happen for any request – unless a visitor actively followed a link to a language other than the most appropriate one. So, if you visit an English post, you should be redirected to the Spanish translation If you then explicitly click the link to the English post, again, you should see it – and also will not be redirected away from English any longer. This information/behavior is stored in the PHP session.

    Is your front page a static page, or the latest posts archive?

    Cheers,
    Thorsten

    Thread Starter Joan Artes

    (@jartes)

    Hi Thorsten!

    We have a static page as a front-page. But it happens with a WooCommerce product or a single page.

    Thanks!

    Hi,

    so, does this mean that, no matter what URL you type in your browser, you are not getting redirected at all. But if you click a link on that page, you are? This is completely backwards.

    What links are we talking about?
    Default WordPress links, such as menu items, links to a single post/page (for example when you click some post title on an archive page), or cross references in the post content?
    Or MultilingualPress-specific links, such as language menu items, or links in the Language Switcher widget, or Quicklinks?

    Can you debug/investigate the conditional logic and/or the redirection logic?

    Cheers,
    Thorsten

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect on the first view’ is closed to new replies.