Fix redirection during install process
This commit is contained in:
parent
60ef59f1b2
commit
37ef8aa50a
1 changed files with 7 additions and 5 deletions
|
@ -130,12 +130,14 @@ class Page
|
|||
/**
|
||||
* Redirect
|
||||
*/
|
||||
$url = new URL($_SERVER['QUERY_STRING']);
|
||||
$redirect_to = $url->getPretty();
|
||||
if (!isset($_POST['install']) && isset($_SERVER['QUERY_STRING'])) {
|
||||
$url = new URL($_SERVER['QUERY_STRING']);
|
||||
$redirect_to = $url->getPretty();
|
||||
|
||||
if ($redirect_to && $redirect_to !== $_SERVER['REQUEST_URI']) {
|
||||
header('Location: ' . $redirect_to);
|
||||
die();
|
||||
if ($redirect_to && $redirect_to !== $_SERVER['REQUEST_URI']) {
|
||||
header('Location: ' . $redirect_to);
|
||||
die();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue