Fix redirect not working to pretty URL

This commit is contained in:
Jay Trees 2022-03-11 16:25:24 +01:00
parent 92fa001734
commit d73a1691d2

View file

@ -144,7 +144,9 @@ class Page
/**
* Redirect
*/
if (isset($options) && !$options->getOption('isInstalled') && isset($_SERVER['QUERY_STRING'])) {
global $options;
if ($options && $options->getOption('isInstalled') && isset($_SERVER['QUERY_STRING'])) {
$url = new URL($_SERVER['QUERY_STRING']);
$redirect_to = $url->getPretty();