From 8a78c9c81abf571c9bf568a5f2a3b7bae36d89b5 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 9 Jul 2015 14:37:39 +0000 Subject: [PATCH] Don't redirect to the latest version of a document when given a specific revision. Fixes issue #1730. - Legacy-Id: 9712 --- ietf/doc/views_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/doc/views_doc.py b/ietf/doc/views_doc.py index efc5db1df..2da855b7c 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -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)