summaryrefslogtreecommitdiffstats
path: root/controllers/UsersController.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/UsersController.php')
-rw-r--r--controllers/UsersController.php9
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');