diff --git a/FrontendModule/presenters/BasePresenter.php b/FrontendModule/presenters/BasePresenter.php index 5cbe4332..3c1e8ceb 100755 --- a/FrontendModule/presenters/BasePresenter.php +++ b/FrontendModule/presenters/BasePresenter.php @@ -230,8 +230,8 @@ protected function startup() if ($id) { $this->actualPage = $this->em->find('WebCMS\Entity\Page', $id); - if ($redirectUrl = $this->actualPage->getRedirect() != NULL) { - if (strpos($redirectUrl, 'http') === false) { + if ($this->actualPage->getRedirect() != NULL) { + if (strpos($this->actualPage->getRedirect(), 'http') === false) { $this->redirectUrl($this->presenter->getHttpRequest()->url->baseUrl . $this->actualPage->getRedirect()); } else { $this->redirectUrl($this->actualPage->getRedirect());