Support » Plugin: qTranslate X » URL parameters problem on change language

  • Resolved masterbip

    (@masterbip)


    Hi there.
    I use some parameters in a link with urlencode:

    ?subtitle=Teachers+and+researchers&bgcolor=%231e73be&icon=&parent=256

    If I change language, plugin eliminates the special characters, giving me this:

    ?subtitle=Teachersandresearchers&bgcolor=#1e73be&icon&parent=256

    What can I do to keep the original URL???

    Thanks.

    https://wordpress.org/plugins/qtranslate-x/

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

    (@johnclause)

    Wow, indeed, I can reproduce it. Sounds like a bug. We need to investigate. Could you try to use rawurlencode() instead, would that also have problems?

    Thread Starter masterbip

    (@masterbip)

    Many thanks for the answer. I am going to try what you suggest and I’ll let you know later.

    Many, many thanks!

    Thread Starter masterbip

    (@masterbip)

    Hi there.

    With rawurlencode I got this url in the link:

    ?subtitulo=Docents%20i%20Investigadors&bgcolor=%231e73be&icono=&padre=256

    Click on that link and I got this URL (in browser url bar):

    ?subtitulo=Docents i Investigadors&bgcolor=%231e73be&icono=&padre=256

    in that page, if I change the language, i got:

    ?subtitulo=DocentsiInvestigadors&bgcolor=#1e73be&icono&padre=256

    So the problem is still present with rawurlencode.

    I was hope, now I don’t know what to do ….

    Thread Starter masterbip

    (@masterbip)

    Another thing is that no matter what I try, $_GET, urldecode, $_REQUEST, the switch lang links works the same way, changing the final url.

    Plugin Author John Clause

    (@johnclause)

    It is very strange, I do not know what happened, but I cannot reproduce it anymore. I am not sure what was the configuration I was trying a few days ago. Can you reproduce it under any standard WP theme, like Storefront, for example, with the minimum of active plugins?

    Thread Starter masterbip

    (@masterbip)

    Guau …. I did what you suggest ….. it looks like the plugin “qTranslate slug” if messing all!

    I am going to try another things and a I’ll let you know. Thanks!

    Plugin Author John Clause

    (@johnclause)

    Ah, that would explain – I was doing some testing of QTranslate Slug recently and apparently it was active when I tried your case. Please, continue discussion at The Forum, if needed, because of this.

    Thread Starter masterbip

    (@masterbip)

    If I got the solution for what is causing the issue I’ll let you know, but, for sure, is not your awesome qTranslate-x plugin.

    I am going to give you some credits asap (colaboration)

    Many thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘URL parameters problem on change language’ is closed to new replies.