Skip to content

Commit 8ae439a

Browse files
committed
If the Internet-Draft is not the current revision, set the URLs to settings.IETF_ID_ARCHIVE_URL. Fixes ietf-tools#1876.
- Legacy-Id: 10633
1 parent 2315135 commit 8ae439a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def document_main(request, name, rev=None):
216216
possible_types = ["pdf", "xml", "ps"]
217217
found_types = ["txt"] + [t for t in possible_types if os.path.exists(base_path + t)]
218218

219-
if doc.get_state_slug() == "active":
219+
if not snapshot and doc.get_state_slug() == "active":
220220
base = settings.IETF_ID_URL
221221
else:
222222
base = settings.IETF_ID_ARCHIVE_URL

0 commit comments

Comments
 (0)