You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
973 B
21 lines
973 B
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
|
|
index 13aef8f67a..55d8dbf9d1 100644
|
|
--- a/core/Controller/LoginController.php
|
|
+++ b/core/Controller/LoginController.php
|
|
@@ -119,11 +119,12 @@ class LoginController extends Controller {
|
|
}
|
|
$this->userSession->logout();
|
|
|
|
- $response = new RedirectResponse($this->urlGenerator->linkToRouteAbsolute(
|
|
- 'core.login.showLoginForm',
|
|
- ['clear' => true] // this param the the code in login.js may be removed when the "Clear-Site-Data" is working in the browsers
|
|
+ $redirectUrl = $this->config->getSystemValue('logout_url',
|
|
+ $this->urlGenerator->linkToRouteAbsolute(
|
|
+ 'core.login.showLoginForm',
|
|
+ ['clear' => true] // this param the the code in login.js may be removed when the "Clear-Site-Data" is working in the browsers)
|
|
));
|
|
-
|
|
+ $response = new RedirectResponse($redirectUrl);
|
|
$this->session->set('clearingExecutionContexts', '1');
|
|
$this->session->close();
|
|
|