mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Fixed case where base_url was empty
This commit is contained in:
@@ -107,7 +107,7 @@ trait MarkdownGravLinkTrait
|
||||
protected function convertUrl($markdown_url)
|
||||
{
|
||||
// if absolue and starts with a base_url move on
|
||||
if (strpos($markdown_url, $this->base_url) === 0) {
|
||||
if ($this->base_url == '' || strpos($markdown_url, $this->base_url) === 0) {
|
||||
$new_url = $markdown_url;
|
||||
// if its absolute with /
|
||||
} elseif (strpos($markdown_url, '/') === 0) {
|
||||
|
||||
Reference in New Issue
Block a user