Commit 3a06ff1b by benjaoming

Merge pull request #168 from TomLottermann/master

Fixed non-found absolute wiki links
parents 39ecbdfc a448f74d
...@@ -79,7 +79,7 @@ class WikiPath(markdown.inlinepatterns.Pattern): ...@@ -79,7 +79,7 @@ class WikiPath(markdown.inlinepatterns.Pattern):
urlpath = None urlpath = None
path = path_from_link path = path_from_link
try: try:
urlpath = models.URLPath.get_by_path(path_from_link) urlpath = models.URLPath.get_by_path(article_title)
path = urlpath.get_absolute_url() path = urlpath.get_absolute_url()
except models.URLPath.DoesNotExist: except models.URLPath.DoesNotExist:
pass pass
......
...@@ -79,7 +79,7 @@ class WikiPath(markdown.inlinepatterns.Pattern): ...@@ -79,7 +79,7 @@ class WikiPath(markdown.inlinepatterns.Pattern):
urlpath = None urlpath = None
path = path_from_link path = path_from_link
try: try:
urlpath = models.URLPath.get_by_path(path_from_link) urlpath = models.URLPath.get_by_path(article_title)
path = urlpath.get_absolute_url() path = urlpath.get_absolute_url()
except models.URLPath.DoesNotExist: except models.URLPath.DoesNotExist:
pass pass
......
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