Fix redirect not working to pretty URL
This commit is contained in:
parent
92fa001734
commit
d73a1691d2
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue