Skip to content

Commit

Permalink
Merge pull request #359 from tianyicui/absolute_wiki_links_bug
Browse files Browse the repository at this point in the history
Fix wiki links when `base-url` is set to empty and `absolute-urls` to yes
  • Loading branch information
jgm committed Apr 2, 2014
2 parents f3df8d1 + 421cf6f commit a7f85e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/Gitit/ContentTransformer.hs
Expand Up @@ -686,7 +686,7 @@ wikiLinksTransform pandoc
-- | Convert links with no URL to wikilinks.
convertWikiLinks :: Config -> Inline -> Inline
convertWikiLinks cfg (Link ref ("", "")) | useAbsoluteUrls cfg =
Link ref (baseUrl cfg </> inlinesToURL ref, "Go to wiki page")
Link ref ("/" </> baseUrl cfg </> inlinesToURL ref, "Go to wiki page")
convertWikiLinks _cfg (Link ref ("", "")) =
Link ref (inlinesToURL ref, "Go to wiki page")
convertWikiLinks _cfg x = x
Expand Down

0 comments on commit a7f85e6

Please sign in to comment.