mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 04:17:09 +02:00
Fix for bad base_url paths in some URLs
This commit is contained in:
@@ -166,7 +166,7 @@ class ImageMedium extends Medium
|
||||
$this->reset();
|
||||
}
|
||||
|
||||
return Grav::instance()['base_url'] . $output . $this->querystring() . $this->urlHash();
|
||||
return Grav::instance()['base_url'] . '/' . ltrim($output . $this->querystring() . $this->urlHash(), '/');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -160,7 +160,7 @@ class Medium extends Data implements RenderableInterface
|
||||
$this->reset();
|
||||
}
|
||||
|
||||
return Grav::instance()['base_url'] . $output . $this->querystring() . $this->urlHash();
|
||||
return Grav::instance()['base_url'] . '/' . ltrim($output . $this->querystring() . $this->urlHash(), '/');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user