Skip to content

Commit

Permalink
possibility to return the user to the previous page which he visited
Browse files Browse the repository at this point in the history
  • Loading branch information
nchankov committed Sep 17, 2010
1 parent c523451 commit 50f0be7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/components/authake.php
Expand Up @@ -130,8 +130,10 @@ function beforeFilter(&$controller) { //pr($this);
if ($path != '/') {
$path = '/'.$path;
}

$loginAction = Configure::read('Authake.loginAction');
if(is_array(Configure::read('Authake.loginAction'))){
$loginAction = "/".implode("/", Configure::read('Authake.loginAction'));
}
if ($path != $loginAction) {
$this->setPreviousUrl(null);
}
Expand Down

0 comments on commit 50f0be7

Please sign in to comment.