diff --git a/laravel/url.php b/laravel/url.php index 972eca4d..11004b03 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -52,7 +52,7 @@ public static function to($url = '', $https = false) { if (filter_var($url, FILTER_VALIDATE_URL) !== false) return $url; - $root = Config::$items['application']['url'].'/'.Config::$items['application']['index']; + $root = static::base().'/'.Config::$items['application']['index']; // Since SSL is often not used while developing the application, we allow the // developer to disable SSL on all framework generated links to make it more