• Resolved josevelas

    (@josevelas)


    Hi.

    First of all, I installed WordPress and Polylang last week. So far I’m loving them both.

    Look, I have a farily simple checkout process with 2Checkout.

    When a customer finishes buying something using 2Checkout, this latter returns the customer back to a webpage and sends a query string appended to my URL (that is, via GET).

    The problem is that one of the variables that 2Checkout sends back is “lang”, and this breaks my website, giving me a 404 error page.

    Is there a way to circumvent this behavior?

    Big thank you!!

    __________
    PS:

    WordPress version: 3.6.1
    Polylang version: 1.1.5
    Permalinks settings: ‘Nombre entrada https://koul.co/wp-koul/pagina-ejemplo/’
    Using a static frontpage: Yes
    Polylang settings:

    Predefined language: Spanish
    URL modifications: Language is selected based on the content. URLs are left unmodified
    Avoid “/language/” in permalinks.
    Hide URL in default language (checked)

    https://www.ads-software.com/plugins/polylang/

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

    (@chouby)

    Yes ‘lang’ is a query var used by Polylang and probably all other multilingual plugins. What is this plugin which uses 2checkout?

    Thread Starter josevelas

    (@josevelas)

    Hi Chouby.

    Thank you.

    No, it’s not a plugin. It’s the regular return process from 2CO to my website. I’m not using a plugin for that.

    I already fixed this issue using an intermediate .php that strips off the “lang” variable and automatically redirects to the final landing url.

    thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Polylang – Query string with "lang" variable breaking the page’ is closed to new replies.