Skip to content

Commit

Permalink
Update CdnFacade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sancospi authored Jul 13, 2018
1 parent 11cc8e5 commit 44c0c65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Vinelab/Cdn/CdnFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ public function __construct(
*/
public function asset($path)
{
// if asset always append the public/ dir to the path (since the user should not add public/ to asset)
return $this->generateUrl($path, '/');
if ($path[0] == '/')
$path = substr($path, 1);
return $this->generateUrl($path, '');
}

/**
Expand Down

0 comments on commit 44c0c65

Please sign in to comment.