Only redirect if url is pretty

This commit is contained in:
grandeljay 2022-05-28 18:02:54 +02:00
parent 4e4938d585
commit 9357e66ba4

View file

@ -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());
}
}