Skip to content
Snippets Groups Projects
Unverified Commit d3ab26c4 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #25142 from nextcloud/fix/login_no_logout_redirect

Do not redirect to logout after login
parents bcb52d64 f57b9309
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment