Skip to content

Commit

Permalink
Update BasePresenter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
voslartomas committed Feb 19, 2016
1 parent 6a92b3b commit ba15638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FrontendModule/presenters/BasePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit ba15638

Please sign in to comment.