diff --git a/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php b/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php index a1ab41906..80e051a36 100644 --- a/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php +++ b/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php @@ -29,8 +29,8 @@ trait MarkdownGravLinkTrait $url = parse_url(htmlspecialchars_decode($Excerpt['element']['attributes']['href'])); - // if there is no host set but there is a path, the file is local - if (!isset($url['host']) && isset($url['path'])) { + // if there is no scheme, the file is local + if (!isset($url['scheme'])) { // convert the URl is required $Excerpt['element']['attributes']['href'] = $this->convertUrl(Uri::build_url($url));