diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index ff35fae0f6..56a07eb9b5 100644 --- a/system/src/Grav/Common/Assets.php +++ b/system/src/Grav/Common/Assets.php @@ -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; } /**