mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 07:36:59 +02:00
#84 fix for all URLs with 'schemes' not being converted to Grav internal URLs
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user