From da744caaef13b409f0ad5267aee76dc832329999 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 22 Oct 2015 16:29:37 +0200 Subject: [PATCH] Repair redirect after login fixes #10287 --- application/forms/Authentication/LoginForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/Authentication/LoginForm.php b/application/forms/Authentication/LoginForm.php index bb01f8a04..190fd06f5 100644 --- a/application/forms/Authentication/LoginForm.php +++ b/application/forms/Authentication/LoginForm.php @@ -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') !== false) { $redirect = static::REDIRECT_URL; } return Url::fromPath($redirect);