#84 fix for all URLs with 'schemes' not being converted to Grav internal URLs

This commit is contained in:
Andy Miller
2014-11-19 13:08:53 -07:00
parent d3265baa4e
commit 3c24dcc5aa

View File

@@ -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));