Do not redirect to logout after login
This can happen when the session was killed due to a timeout. Then logout was triggered. Nobody wants to login only to be logged out again. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ac14e42b49
commit
23f466fb10
|
@ -175,7 +175,10 @@ class LoginController extends Controller {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!empty($redirect_url)) {
|
if (!empty($redirect_url)) {
|
||||||
$this->initialStateService->provideInitialState('core', 'loginRedirectUrl', $redirect_url);
|
[$url, ] = explode('?', $redirect_url);
|
||||||
|
if ($url !== $this->urlGenerator->linkToRoute('core.login.logout')) {
|
||||||
|
$this->initialStateService->provideInitialState('core', 'loginRedirectUrl', $redirect_url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->initialStateService->provideInitialState(
|
$this->initialStateService->provideInitialState(
|
||||||
|
|
Loading…
Reference in New Issue