Merged in [10633] from housley@vigilsec.com:

If the Internet-Draft is not the current revision, set the URLs to settings.IETF_ID_ARCHIVE_URL.  Fixes #1876.
 - Legacy-Id: 10656
Note: SVN reference [10633] has been migrated to Git commit 8ae439ae0f
This commit is contained in:
Henrik Levkowetz 2016-01-12 20:57:16 +00:00
commit 051daf6730

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