diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-04-22 11:16:54 -0700 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-04-22 11:16:54 -0700 |
commit | 79215f71eb501f65d3e74fdda3e592fbcadd9c7e (patch) | |
tree | 3e2da560d44af4479af4830c516f62d9d27c933f /src/Hakyll/Web/Html.hs | |
parent | 0954e893a019ae357fdbd1baa8f4042f82c79a02 (diff) | |
parent | 63a3000f9cab6446ce40cf6d9671123baee6c22b (diff) | |
download | hakyll-79215f71eb501f65d3e74fdda3e592fbcadd9c7e.tar.gz |
Merge pull request #133 from simukis/scheme-relative
Account for scheme-relative URLs
Diffstat (limited to 'src/Hakyll/Web/Html.hs')
-rw-r--r-- | src/Hakyll/Web/Html.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Html.hs b/src/Hakyll/Web/Html.hs index 90f963e..58b5c43 100644 --- a/src/Hakyll/Web/Html.hs +++ b/src/Hakyll/Web/Html.hs @@ -120,7 +120,7 @@ toSiteRoot = emptyException . joinPath . map parent -------------------------------------------------------------------------------- -- | Check if an URL links to an external HTTP(S) source isExternal :: String -> Bool -isExternal url = any (flip isPrefixOf url) ["http://", "https://"] +isExternal url = any (flip isPrefixOf url) ["http://", "https://", "//"] -------------------------------------------------------------------------------- |