summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Hakyll/Web/Urls/Relativize.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Urls/Relativize.hs b/src/Hakyll/Web/Urls/Relativize.hs
index f4b7a6c..0b7df4e 100644
--- a/src/Hakyll/Web/Urls/Relativize.hs
+++ b/src/Hakyll/Web/Urls/Relativize.hs
@@ -44,4 +44,4 @@ relativizeUrls :: String -- ^ Path to the site root
-> String -- ^ Resulting HTML
relativizeUrls root = withUrls rel
where
- rel x = if "/" `isPrefixOf` x then root ++ x else x
+ rel x = if "/" `isPrefixOf` x && not ("//" `isPrefixOf` x) then root ++ x else x