Skip to content

Commit

Permalink
ConfigController: Do not use forward() but redirectNow()
Browse files Browse the repository at this point in the history
fixes #9349
  • Loading branch information
Johannes Meyer committed Jun 17, 2015
1 parent 858c015 commit b54bf35
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions application/controllers/ConfigController.php
Expand Up @@ -86,12 +86,8 @@ public function indexAction()
if ($this->firstAllowedAction === null) {
throw new SecurityException($this->translate('No permission for application configuration'));
}
$action = $this->getTabs()->get($this->firstAllowedAction);
if (substr($action->getUrl()->getPath(), 0, 7) === 'config/') {
$this->forward($this->firstAllowedAction);
} else {
$this->redirectNow($action->getUrl());
}

$this->redirectNow($this->getTabs()->get($this->firstAllowedAction)->getUrl());
}

/**
Expand Down

0 comments on commit b54bf35

Please sign in to comment.