Fix redirect url in multilang

This commit is contained in:
Laurent Destailleur 2020-06-06 20:37:17 +02:00
parent fb02edf254
commit 123265bf4c

View File

@ -121,7 +121,7 @@ if ($_SERVER['PHP_SELF'] != DOL_URL_ROOT.'/website/index.php') // If we browsing
else
{
$newpageref = $obj->pageurl;
header("Location: ".$newpageref.'.php?l='.GETPOST('l', 'aZ09'));
header("Location: ".(($obj->lang && $obj->lang != $website->lang) ? '/'.$obj->lang.'/' : '/').$newpageref.'.php?l='.GETPOST('l', 'aZ09'));
exit;
}
}