From 123265bf4ce6408258e5d7a14f6b9b8daefde678 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 6 Jun 2020 20:37:17 +0200 Subject: [PATCH] Fix redirect url in multilang --- htdocs/core/website.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/website.inc.php b/htdocs/core/website.inc.php index 5c618b089a3..d611f687414 100644 --- a/htdocs/core/website.inc.php +++ b/htdocs/core/website.inc.php @@ -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; } }