From 825be5be7799031c32ca71048f0dd90fe88d6223 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Jun 2011 07:23:53 -0700 Subject: [PATCH] Updated URL class to use application.index. --- system/url.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/system/url.php b/system/url.php index f57d1882..4f343800 100644 --- a/system/url.php +++ b/system/url.php @@ -18,7 +18,10 @@ class URL { return $url; } - $base = Config::get('application.url'); + // ---------------------------------------------------- + // Get the base URL and index page. + // ---------------------------------------------------- + $base = Config::get('application.url').'/'.Config::get('application.index').'/'; // ---------------------------------------------------- // Does the URL need an HTTPS protocol? @@ -28,7 +31,7 @@ class URL { $base = 'https://'.substr($base, 7); } - return rtrim($base, '/').'/'.ltrim($url, '/'); + return $base.ltrim($url, '/'); } /**