diff options
Diffstat (limited to 'plugins/site-prefix.lua')
-rw-r--r-- | plugins/site-prefix.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/site-prefix.lua b/plugins/site-prefix.lua index e64f839..6c7f12a 100644 --- a/plugins/site-prefix.lua +++ b/plugins/site-prefix.lua @@ -15,7 +15,11 @@ index, link = next(links) while index do href = HTML.get_attribute(link, "href") + if href then + -- remove prefix sometimes introduced by org + href = Regex.replace(href, "^file://", "") + -- Check if URL starts with a leading "/" if Regex.match(href, "^/") then -- Remove leading slashes |