diff options
author | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-07-02 11:39:41 +0200 |
---|---|---|
committer | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-07-02 11:39:41 +0200 |
commit | 805a7cf485d8fa9aa4af7c1b279e1084f53cd2af (patch) | |
tree | 544e1f1631a8459b45e16f787168f236a65922f9 /lib | |
parent | 9933b331663548b8f082239a8ee6c492978bb467 (diff) | |
parent | d31e532780e4b2ecf062018ec22cbd67532d0b64 (diff) | |
download | nextcloud-server-805a7cf485d8fa9aa4af7c1b279e1084f53cd2af.tar.gz nextcloud-server-805a7cf485d8fa9aa4af7c1b279e1084f53cd2af.zip |
Merge pull request #9338 from owncloud/fix-redirect-for-appframework
Redirect after session expiry to the previous loaded page
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()); } |