diff options
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/UsersController.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/controllers/UsersController.php b/controllers/UsersController.php index cc0b3db..fdea5f8 100644 --- a/controllers/UsersController.php +++ b/controllers/UsersController.php @@ -319,9 +319,14 @@ class UsersController extends \lithium\action\Controller { } //If the user was trying to go somewhere, redirect them there - if ($location != null) + $loc = Session::read('url'); + if (isset($loc)) { - + Session::delete('url'); + return $this->redirect(array('controller' => $loc['controller'], + 'action' => $loc['action'], + 'args' => $loc['args'] + )); } //Otherwise send them to the hompa return $this->redirect('Users::feed'); |