Commit f00b7d30 by Bridger Maxwell

Fixed bug where non-found wiki links ignored base url.

parent 533c7fc2
......@@ -69,7 +69,7 @@ class WikiPath(markdown.inlinepatterns.Pattern):
# from the link, regardless of whether or not something can be
# looked up
path_from_link = ""
if absolute:
base_path = self.config['base_url'][0]
path_from_link = os_path.join(base_path, article_title)
......@@ -91,7 +91,7 @@ class WikiPath(markdown.inlinepatterns.Pattern):
path = urlpath.get_absolute_url()
else:
urlpath = None
path = "/" + path_from_link
path = self.config['base_url'][0] + path_from_link
label = m.group('linkTitle')
a = etree.Element('a')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment