Skip to content

Commit

Permalink
Merge pull request #28 from getherbie/hotfix/wrong-url-generated-if-e…
Browse files Browse the repository at this point in the history
…mpty

Hotfix/wrong url generated if empty
  • Loading branch information
tbreuss committed Mar 1, 2016
2 parents b395f2b + 7703a86 commit ccf4eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/Url/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function generateAbsolute($route)
protected function filterUrl($url)
{
$url = preg_replace('/\/index$/', '', $url);
return empty($url) ? '/' : rtrim($url, '/');
$url = rtrim($url, '/');
return empty($url) ? '/' : $url;
}
}

0 comments on commit ccf4eab

Please sign in to comment.