• Resolved viniciusferrao

    (@viniciusferrao)


    Hello guys,

    I’m trying to build a blog with qtranslate-X but things aren’t good.

    Here’s the blog address:
    https://ferrao.eti.br

    As you can see, when someone enters in the blog it redirects automatically to /en. Which should not be done, since the default language is pt-br.

    The major problem happens when we click in “Portuguese Brasilian” link or just try to go directly to https://ferrao.eti.br/pt-br

    It redirects to /en/pt-br!

    I’m seeking for help on how to debug the issue. I don’t know if nginx is the one to blame here, but I don’t think so.

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Clause

    (@johnclause)

    I am not sure what is going on here. There has been some changes in the code, could you please try the latest version from GitHub, which you can download with ‘Download ZIP’ button on GitHub page or press here for the sake of convenience?

    Thread Starter viniciusferrao

    (@viniciusferrao)

    Upgraded to the Github version and the problem persisted.

    I can’t blame qtranslate-X for that. But I’m not sure what’s the necessary steps to isolate the problem.

    Plugin Author Gunu

    (@grafcom)

    @viniciusferrao,

    the problem is still there?

    try the pre-release of versie 3.3 download here

    Thread Starter viniciusferrao

    (@viniciusferrao)

    Hello Gunu.

    Unfortunately the problem still persists. As I said, I can’t blame qTranslate-X for this. I don’t know if nginx is the one to blame. That’s why I need help debugging this issue.

    Thread Starter viniciusferrao

    (@viniciusferrao)

    Gunu, I’ve installed a new VM from the ground and I can confirm that the bug persists. This is definitely an rewrite problem.

    I’ve tried using Apache 2.4 instead, things went better, still broken, but appeared to be an Apache problem.

    There are any success stories of qTranslate-X with nginx?

    Plugin Author Gunu

    (@grafcom)

    @viniciusferrao,

    this post deals with a different problem, but this user (extremecarver) also appears to use nginx.
    Maybe this helps you further.

    Have you tried using Portuguese instead Portuguese Brazil?

    I’m having loads of problems with qtranslate-x, I managed to get some infinite loop causing error in my server where it redirected to pt-br/pt-br/pt-br/pt-br/pt-br/pt-br/pt-br….

    I also at some point managed to get the same problem as you.

    In the end just seems qtranslate-X can’t deal with 5 chars language codes… just 2 chars…

    Therefore when you try to open https://ferrao.eti.br/pt-br, pt-br is not recognized as language, but as page. So you get redirected to the pt-br page in english :).

    (if you get to solve that you may face the permanent redirect problem, which I couldn’t here either)

    ps: I believe you guys were in the wrong track as this does not relate Nginx at all, I’m actually on Apache.

    Plugin Author John Clause

    (@johnclause)

    @vbkun gave perfect explanation – thanks a lot, and I added sticky post https://www.ads-software.com/support/topic/pt-br-language-code-is-not-supported, which I believe closes this topic?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Double language in address: https://blog.com/en/pt-br’ is closed to new replies.