If the Internet-Draft is not the current revision, set the URLs to settings.IETF_ID_ARCHIVE_URL. Fixes #1876.

- Legacy-Id: 10633
This commit is contained in:
Russ Housley 2016-01-05 20:33:48 +00:00
parent 23151352c3
commit 8ae439ae0f

View file

@ -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