Don't redirect to the latest version of a document when given a specific revision. Fixes issue #1730.

- Legacy-Id: 9712
This commit is contained in:
Henrik Levkowetz 2015-07-09 14:37:39 +00:00
parent 34a1814b42
commit 8a78c9c81a

View file

@ -92,7 +92,7 @@ def document_main(request, name, rev=None):
# take care of possible redirections
aliases = DocAlias.objects.filter(document=doc).values_list("name", flat=True)
if doc.type_id == "draft" and not name.startswith("rfc"):
if rev==None and doc.type_id == "draft" and not name.startswith("rfc"):
for a in aliases:
if a.startswith("rfc"):
return redirect("doc_view", name=a)