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

@ -162,11 +162,10 @@ class Page
* Redirect
*/
if ($options && $options->getOption('isInstalled') && isset($_SESSION['_GET'])) {
$url = new URL(http_build_query($_SESSION['_GET']));
$redirect_to = $url->getPretty();
$url = new URL(http_build_query($_SESSION['_GET']));
if ($redirect_to) {
redirect($redirect_to);
if ($url->isPretty()) {
redirect($url->getPretty());
}
}