Repair redirect after login

fixes #10287
This commit is contained in:
Alexander A. Klimov 2015-10-22 16:29:37 +02:00
parent 20e010bea0
commit 6b0b7fbeea
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class LoginForm extends Form
if ($this->created) {
$redirect = $this->getElement('redirect')->getValue();
}
if (empty($redirect) || strpos($redirect, 'authentication/logout') !== 0) {
if (empty($redirect) || strpos($redirect, 'authentication/logout') === 0) {
$redirect = static::REDIRECT_URL;
}
return Url::fromPath($redirect);