1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00
nextcloud_ynh/sources/patches_last_version/app-00-add-logout_url-conf.patch
Jimmy Monin 3fdcdf6576 Fix automatic logout from YunoHost when logging out from Nextcloud (#106):
- fix Nextcloud source patch
- fix patches not applied on installation
- add an empty patches directory to work around a nasty cache issue when running package_check
2018-05-14 18:53:02 +02:00

14 lines
566 B
Diff

--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -119,7 +119,10 @@
}
$this->userSession->logout();
- $response = new RedirectResponse($this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm'));
+ $redirectUrl = $this->config->getSystemValue('logout_url',
+ $this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm')
+ );
+ $response = new RedirectResponse($redirectUrl);
$response->addHeader('Clear-Site-Data', '"cache", "cookies", "storage", "executionContexts"');
return $response;
}