Commit 7b40385d by Thomas Lottermann

fixed non-found absolute wiki urls

parent c259b318
...@@ -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