Merge pull request #25147 from nextcloud/backport/25142/stable19

[stable19] Do not redirect to logout after login
This commit is contained in:
Morris Jobke 2021-01-15 16:45:55 +01:00 committed by GitHub
commit f6db3cb613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -175,7 +175,10 @@ class LoginController extends Controller {
);
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(