Merge pull request #25147 from nextcloud/backport/25142/stable19
[stable19] Do not redirect to logout after login
This commit is contained in:
commit
f6db3cb613
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue