NEW on redirect of page in website module, GET parameters are kept.
This commit is contained in:
parent
9dfdce03aa
commit
28ac6a7b55
@ -467,7 +467,7 @@ function redirectToContainer($containerref, $containeraliasalt = '', $containeri
|
|||||||
if ($permanent) {
|
if ($permanent) {
|
||||||
header("Status: 301 Moved Permanently", false, 301);
|
header("Status: 301 Moved Permanently", false, 301);
|
||||||
}
|
}
|
||||||
header("Location: ".$newurl);
|
header("Location: ".$newurl.(empty($_SERVER["QUERY_STRING"]) ? '' : '?'.$_SERVER["QUERY_STRING"]));
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
print "Error, page contains a redirect to the alias page '".$containerref."' that does not exists in web site (".$website->id." / ".$website->ref.")";
|
print "Error, page contains a redirect to the alias page '".$containerref."' that does not exists in web site (".$website->id." / ".$website->ref.")";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user