Skip to content

Commit 55003bd

Browse files
committed
Simplified and corrected some code which uses doc.href(), based on the recent updates to href().
- Legacy-Id: 14026
1 parent cf8f70a commit 55003bd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,7 @@ def document_main(request, name, rev=None):
553553
for g in globs:
554554
extension = os.path.splitext(g)[1]
555555
t = os.path.splitext(g)[1].lstrip(".")
556-
url = doc.get_absolute_url() if doc.type_id=='bluesheets' else doc.href()
557-
urlbase, urlext = os.path.splitext(url)
558-
if not url.endswith("/") and not url.endswith(extension):
559-
url = urlbase + extension
556+
url = doc.href()
560557

561558
if extension == ".txt":
562559
content = get_document_content(basename, pathname + extension, split=False)

0 commit comments

Comments
 (0)