Only redirect if url is pretty
This commit is contained in:
parent
4e4938d585
commit
9357e66ba4
1 changed files with 3 additions and 4 deletions
|
@ -163,10 +163,9 @@ class Page
|
|||
*/
|
||||
if ($options && $options->getOption('isInstalled') && isset($_SESSION['_GET'])) {
|
||||
$url = new URL(http_build_query($_SESSION['_GET']));
|
||||
$redirect_to = $url->getPretty();
|
||||
|
||||
if ($redirect_to) {
|
||||
redirect($redirect_to);
|
||||
if ($url->isPretty()) {
|
||||
redirect($url->getPretty());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue