diff options
author | Lim Yuen Hoe <yuenhoe@hotmail.com> | 2014-09-19 01:38:38 +0800 |
---|---|---|
committer | Lim Yuen Hoe <yuenhoe@hotmail.com> | 2014-09-19 01:48:45 +0800 |
commit | ed13a04c4c7906c190c4a02acecb27a77b3bdb2a (patch) | |
tree | aa7eef726548ed7223449a02a149af3b7b7a8c4f /app/Controller/Base.php | |
parent | 7fac9783c6593f89266e6d152faeb2aef09b6dfc (diff) |
redirect to original target page after logging in
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r-- | app/Controller/Base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 1ef54d8e..93749ea6 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -124,7 +124,7 @@ abstract class Base // Authentication if (! $this->authentication->isAuthenticated($controller, $action)) { - $this->response->redirect('?controller=user&action=login'); + $this->response->redirect('?controller=user&action=login&redirect_query='.urlencode($this->request->getQueryString())); } // Check if the user is allowed to see this page |