@@ -332,7 +298,7 @@ Route::get("lang", function () {
if(array_key_exists("query",$components)){
$path.="?".$components["query"];
}
if(($host===$current_host||in_array($current_host,$allowed_hosts))&&preg_match("/^http(s)?:\/\//",$previous)){// only if the host of that URL matches the current host
if(($host===$current_host||in_array($current_host,$allowed_hosts))&&preg_match("/^http(s)?:\/\//",$previous)){// only if the host of that URL matches the current host