From 8ae439ae0fb468ccbf83829fb1781e3b4fc46153 Mon Sep 17 00:00:00 2001 From: Russ Housley Date: Tue, 5 Jan 2016 20:33:48 +0000 Subject: [PATCH] If the Internet-Draft is not the current revision, set the URLs to settings.IETF_ID_ARCHIVE_URL. Fixes #1876. - Legacy-Id: 10633 --- 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 a93f83a0c..3682877dc 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -216,7 +216,7 @@ def document_main(request, name, rev=None): possible_types = ["pdf", "xml", "ps"] found_types = ["txt"] + [t for t in possible_types if os.path.exists(base_path + t)] - if doc.get_state_slug() == "active": + if not snapshot and doc.get_state_slug() == "active": base = settings.IETF_ID_URL else: base = settings.IETF_ID_ARCHIVE_URL