Skip to content

Commit

Permalink
Fix absolute path generation in buildLocalLink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sommerregen committed Jun 25, 2016
1 parent 3714a8d commit b7b68c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/src/Grav/Common/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,8 @@ protected function buildLocalLink($asset, $absolute = false)
} catch (\Exception $e) {
}

$base_url = $absolute ? '/' : $this->base_url;
return $asset ? $base_url . ltrim($asset, '/') : false;
$uri = $absolute ? $asset : $this->base_url . ltrim($asset, '/');
return $asset ? $uri : false;
}

/**
Expand Down

0 comments on commit b7b68c7

Please sign in to comment.