Skip to content

Commit

Permalink
Return $default url as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Jan 23, 2015
1 parent da10b6b commit 47185ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Controller.php
Expand Up @@ -587,7 +587,7 @@ public function render($view = null, $layout = null)
public function referer($default = null, $local = false)
{
if (!$this->request) {
return '/';
return Router::url($default, !$local);
}

$referer = $this->request->referer($local);
Expand Down

0 comments on commit 47185ce

Please sign in to comment.