Skip to content
Permalink
Browse files

Fix url option key.

Closes #3845
  • Loading branch information...
ADmad committed Jul 1, 2014
1 parent 06bdf75 commit c1e7d43bb1521ebfa32edb58c71e247b6e15e776
@@ -710,7 +710,7 @@ public function redirectUrl($url = null) {
$redir = '/';
}
if (is_array($redir)) {
return Router::url($redir + array('base' => false));
return Router::url($redir + array('_base' => false));
}
return $redir;
}
@@ -1143,6 +1143,13 @@ public function testRedirectSet() {
$result = $this->Auth->redirectUrl($value);
$this->assertEquals('/users/home', $result);
$this->assertEquals($value, $this->Auth->session->read('Auth.redirect'));
$request = new Request();
$request->base = '/base';
Router::setRequestInfo($request);
$result = $this->Auth->redirectUrl($value);
$this->assertEquals('/users/home', $result);
}
/**

0 comments on commit c1e7d43

Please sign in to comment.
You can’t perform that action at this time.