From 653770a3eb2bbe91fcc445c4a436665a3b218aaf Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 5 Jan 2013 15:53:39 -0600 Subject: [PATCH] Allow relative URLs in to_asset. --- laravel/url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/url.php b/laravel/url.php index e0693252..dc153cab 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -239,7 +239,7 @@ class URL { */ public static function to_asset($url, $https = null) { - if (static::valid($url)) return $url; + if (static::valid($url) or starts_with($url, '//')) return $url; // If a base asset URL is defined in the configuration, use that and don't // try and change the HTTP protocol. This allows the delivery of assets