WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Menu url isn't converted on https (2 posts)

  1. barnholdy
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/qtranslate/

  2. saas
    Member
    Posted 1 year ago #

    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????

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags