diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index ca907ae6f1c..ea40cb2dd7e 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -467,7 +467,7 @@ function redirectToContainer($containerref, $containeraliasalt = '', $containeri if ($permanent) { header("Status: 301 Moved Permanently", false, 301); } - header("Location: ".$newurl); + header("Location: ".$newurl.(empty($_SERVER["QUERY_STRING"]) ? '' : '?'.$_SERVER["QUERY_STRING"])); exit; } else { print "Error, page contains a redirect to the alias page '".$containerref."' that does not exists in web site (".$website->id." / ".$website->ref.")";