Fix for bad base_url paths in some URLs

This commit is contained in:
Andy Miller
2017-05-21 16:24:13 -06:00
parent 9277381527
commit d40cb3c74a
2 changed files with 2 additions and 2 deletions

View File

@@ -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(), '/');
}
/**

View File

@@ -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(), '/');
}
/**