Skip to content

Commit

Permalink
If the Internet-Draft is not the current revision, set the URLs to se…
Browse files Browse the repository at this point in the history
…ttings.IETF_ID_ARCHIVE_URL. Fixes #1876.

 - Legacy-Id: 10633
  • Loading branch information
russhousley committed Jan 5, 2016
1 parent 2315135 commit 8ae439a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ietf/doc/views_doc.py
Expand Up @@ -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
Expand Down

0 comments on commit 8ae439a

Please sign in to comment.