diff --git a/system/Url/UrlGenerator.php b/system/Url/UrlGenerator.php index 8fd737e0..ff71f57e 100644 --- a/system/Url/UrlGenerator.php +++ b/system/Url/UrlGenerator.php @@ -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; } }