From ed13a04c4c7906c190c4a02acecb27a77b3bdb2a Mon Sep 17 00:00:00 2001 From: Lim Yuen Hoe Date: Fri, 19 Sep 2014 01:38:38 +0800 Subject: redirect to original target page after logging in --- app/Controller/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/Base.php') 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 -- cgit v1.2.3