Commit 653770a3 authored by Taylor Otwell's avatar Taylor Otwell

Allow relative URLs in to_asset.

parent 13a1c5da
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment