Commit 7b40385d by Thomas Lottermann

fixed non-found absolute wiki urls

parent c259b318
......@@ -79,7 +79,7 @@ class WikiPath(markdown.inlinepatterns.Pattern):
urlpath = None
path = path_from_link
try:
urlpath = models.URLPath.get_by_path(path_from_link)
urlpath = models.URLPath.get_by_path(article_title)
path = urlpath.get_absolute_url()
except models.URLPath.DoesNotExist:
pass
......
......@@ -79,7 +79,7 @@ class WikiPath(markdown.inlinepatterns.Pattern):
urlpath = None
path = path_from_link
try:
urlpath = models.URLPath.get_by_path(path_from_link)
urlpath = models.URLPath.get_by_path(article_title)
path = urlpath.get_absolute_url()
except models.URLPath.DoesNotExist:
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