Fix For select language component, we force on root

This commit is contained in:
Laurent Destailleur 2020-06-06 20:25:05 +02:00
parent 34778937c3
commit fb02edf254

View File

@ -1459,6 +1459,7 @@ class Website extends CommonObject
$url = preg_replace('/(\?|&)l=([a-zA-Z_]*)/', '', $url); // We remove param l from url
//$url = preg_replace('/(\?|&)lang=([a-zA-Z_]*)/', '', $url); // We remove param lang from url
$url .= (preg_match('/\?/', $url) ? '&' : '?').'l=';
if (! preg_match('/^\//', $url)) $url = '/'.$url;
$HEIGHTOPTION = 40;
$MAXHEIGHT = 4 * $HEIGHTOPTION;