ConfigController: Do not use forward() but redirectNow()

fixes #9349
This commit is contained in:
Johannes Meyer 2015-06-17 13:43:59 +02:00
parent 858c015d4c
commit b54bf35402
1 changed files with 2 additions and 6 deletions

View File

@ -86,12 +86,8 @@ class ConfigController extends Controller
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());
}
/**