Allow relative URLs in to_asset.
This commit is contained in:
parent
13a1c5daac
commit
653770a3eb
|
@ -239,7 +239,7 @@ protected static function convention($action, $parameters)
|
||||||
*/
|
*/
|
||||||
public static function to_asset($url, $https = null)
|
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
|
// 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
|
// try and change the HTTP protocol. This allows the delivery of assets
|
||||||
|
|
Loading…
Reference in New Issue