From 3c24dcc5aa62b4b2fe5e7e9a61de610fd340471e Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 19 Nov 2014 13:08:53 -0700 Subject: [PATCH] #84 fix for all URLs with 'schemes' not being converted to Grav internal URLs --- system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));