Skip to content

Commit 182a89b

Browse files
committed
Fixing default/fallback url when no referrer is set.
Fixes #1761
1 parent 71e2c8e commit 182a89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Cake/Controller/Component/AuthComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function startup($controller) {
329329
}
330330

331331
$this->flash($this->authError);
332-
$controller->redirect($controller->referer(), null, true);
332+
$controller->redirect($controller->referer('/'), null, true);
333333
return false;
334334
}
335335

0 commit comments

Comments
 (0)