[#6239] Remove RelativeLinkRewriter short-circuit
Not sure why it was there to begin with. Asked Rick and he
didn't remember. In any case, removing it has no effect that
I could see. Tests all pass, and artifact links in emails and
web pages are still generated correctly (absolute links in
emails, and relative links in web pages).
Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>
diff --git a/Allura/allura/lib/markdown_extensions.py b/Allura/allura/lib/markdown_extensions.py
index a1158e5..be2805a 100644
--- a/Allura/allura/lib/markdown_extensions.py
+++ b/Allura/allura/lib/markdown_extensions.py
@@ -238,11 +238,6 @@
self._make_absolute = make_absolute
def run(self, text):
- try:
- if not request.path_info.endswith('/'): return text
- except:
- # Must be being called outside the request context
- pass
soup = BeautifulSoup(text)
if self._make_absolute:
rewrite = self._rewrite_abs