diff --git a/system/url.php b/system/url.php index 0346f019..30cd3c2d 100644 --- a/system/url.php +++ b/system/url.php @@ -25,7 +25,7 @@ public static function to($url = '', $https = false, $asset = false) $base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base; - return $base.'/'.ltrim($url, '/'); + return rtrim($base, '/').'/'.ltrim($url, '/'); } /**