diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-07-01 16:54:52 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-07-01 16:54:52 +0200 |
commit | b6a4cc20f7498e8abc750795e36440c0d704589c (patch) | |
tree | 3102041799ea6cf6af6cc31df58e18d110229b5a /lib | |
parent | ff416eaa57c421644cfcd8541fb8f9e229dcd3d3 (diff) | |
download | nextcloud-server-b6a4cc20f7498e8abc750795e36440c0d704589c.tar.gz nextcloud-server-b6a4cc20f7498e8abc750795e36440c0d704589c.zip |
Redirect after session expiry to the previous loaded page
* fixes #6945
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/middleware/security/securitymiddleware.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/appframework/middleware/security/securitymiddleware.php b/lib/private/appframework/middleware/security/securitymiddleware.php index 5b56210024d..948a43ce0f4 100644 --- a/lib/private/appframework/middleware/security/securitymiddleware.php +++ b/lib/private/appframework/middleware/security/securitymiddleware.php @@ -143,6 +143,8 @@ class SecurityMiddleware extends Middleware { // TODO: replace with link to route $url = $this->urlGenerator->getAbsoluteURL('index.php'); + // add redirect URL to redirect to the previous page after login + $url .= '?redirect_url=' . urlencode($this->request->server['REQUEST_URI']); $response = new RedirectResponse($url); $this->logger->debug($exception->getMessage()); } |