• Resolved bteboul

    (@bteboul)


    Hi,

    Thank you for all the fix provided.

    The search doesnt work because of a double langage param in the url with the version 2.9.5.
    Ex : https://siteurl/en/en/?s=search

    File qtranslate_kooks.php line 126
    $form = preg_replace('#action="[^"]*"#','action="'.trailingslashit(qtranxf_convertURL(get_home_url())).'"',$form);

    I think that it applies 2 time the translation because get_home_url() is already hooked.
    It can be fixed by removing the qtransxf_convertURL :
    $form = preg_replace('#action="[^"]*"#','action="'.trailingslashit(get_home_url()).'"',$form);

    Bruno

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks so much for this notification and fix. The issue still exists in 2.9.6, but it’s easy to make this small change in qtranslate_hooks.php, so I’ll just keep an eye on this file the next time I update the plugin.

    I am testing 2.9.7.1b (downloaded from GitHub) and it seems to be working properly (no double language parameter in URL).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search widget has double lang param in url v2.9.5’ is closed to new replies.