NEW on redirect of page in website module, GET parameters are kept.

This commit is contained in:
Laurent Destailleur 2022-02-21 19:46:11 +01:00
parent 9dfdce03aa
commit 28ac6a7b55

View File

@ -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.")";