Skip to content

Commit b011f0a

Browse files
fix: Show requested rev if it is current, even w/o dochistory (ietf-tools#6703)
1 parent bcca519 commit b011f0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ def document_main(request, name, rev=None, document_html=False):
210210
snapshot = False
211211

212212
gh = None
213-
if rev:
214-
# find the entry in the history
213+
if rev and rev != doc.rev:
214+
# find the entry in the history if the rev requested is not the current rev
215215
for h in doc.history_set.order_by("-time"):
216216
if rev == h.rev:
217217
snapshot = True

0 commit comments

Comments
 (0)