• Hi,

    I had the problem, that menu urls weren’t converted when using https. I could temporary fix that by adding some lines to translate_core.php in qtrans_convertURL(). Around line 552 there is the following code:

    if(substr($url,0,strlen($home))!=$home) {
    	return $url;
    }

    There $url starts with https, but $home with http. So the url is returned without being converted. My quick and dirty fix is to add the following lines after $home = rtrim(get_option('home'),"/"); in line 541:

    $home_https = str_replace("http","https",$home);
    if(substr($url,0,strlen($home_https))==$home_https){
    	$home = str_replace("http","https",$home);
    }

    Is this issue known? Are there any clean fixes out?

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

Viewing 1 replies (of 1 total)
  • I had same issue, and I used your fix and it solved the issue. So I would like to see this fix in core????

    Developer reading????

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: qTranslate] Menu url isn't converted on https’ is closed to new replies.