Merge pull request #25142 from nextcloud/fix/login_no_logout_redirect
Do not redirect to logout after login
This commit is contained in:
commit
d3ab26c4b0
|
@ -175,8 +175,11 @@ class LoginController extends Controller {
|
|||
);
|
||||
|
||||
if (!empty($redirect_url)) {
|
||||
[$url, ] = explode('?', $redirect_url);
|
||||
if ($url !== $this->urlGenerator->linkToRoute('core.login.logout')) {
|
||||
$this->initialStateService->provideInitialState('core', 'loginRedirectUrl', $redirect_url);
|
||||
}
|
||||
}
|
||||
|
||||
$this->initialStateService->provideInitialState(
|
||||
'core',
|
||||
|
|
Loading…
Reference in New Issue