Skip to content

Commit 8a78c9c

Browse files
committed
Don't redirect to the latest version of a document when given a specific revision. Fixes issue ietf-tools#1730.
- Legacy-Id: 9712
1 parent 34a1814 commit 8a78c9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def document_main(request, name, rev=None):
9292

9393
# take care of possible redirections
9494
aliases = DocAlias.objects.filter(document=doc).values_list("name", flat=True)
95-
if doc.type_id == "draft" and not name.startswith("rfc"):
95+
if rev==None and doc.type_id == "draft" and not name.startswith("rfc"):
9696
for a in aliases:
9797
if a.startswith("rfc"):
9898
return redirect("doc_view", name=a)

0 commit comments

Comments
 (0)