summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVolkan Gezer <wakeup@users.noreply.github.com>2014-07-02 11:39:41 +0200
committerVolkan Gezer <wakeup@users.noreply.github.com>2014-07-02 11:39:41 +0200
commit805a7cf485d8fa9aa4af7c1b279e1084f53cd2af (patch)
tree544e1f1631a8459b45e16f787168f236a65922f9 /lib
parent9933b331663548b8f082239a8ee6c492978bb467 (diff)
parentd31e532780e4b2ecf062018ec22cbd67532d0b64 (diff)
downloadnextcloud-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.php2
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());
}