Commits

David Chambers committed cd218f5

Fixed short URL resolution for installations not mounted at /.

Comments (0)

Files changed (1)

         return page_not_found(request)
 
     rel = found.urls['canon']['rel']
+    if path != rel:
+        return HttpResponseRedirect(found.permalink())
 
     if isinstance(found, Category):
-        if path != rel:
-            return HttpResponseRedirect(found.permalink())
         return category(request, found)
 
     document = found # we've confirmed that the we're to serve a Document
-
-    if path != rel:
-        return HttpResponseRedirect(reverse(post, args=(rel[1:-1],)))
-
     thread = document._thread
 
     comment = request.session.pop('comment', None) if thread else None