Skip to content

Commit 4e649b9

Browse files
authored
fix: force open links in agenda session materials html to open in new tab (ietf-tools#4277)
1 parent 236c3f5 commit 4e649b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def materials_document(request, document, num=None, ext=None):
258258
content_type = content_type.replace('plain', 'markdown', 1)
259259
break;
260260
elif atype[0] == 'text/html':
261-
bytes = "<html>\n<head></head>\n<body>\n%s\n</body>\n</html>\n" % markdown.markdown(bytes.decode())
261+
bytes = "<html>\n<head><base target=\"_blank\" /></head>\n<body>\n%s\n</body>\n</html>\n" % markdown.markdown(bytes.decode())
262262
content_type = content_type.replace('plain', 'html', 1)
263263
break;
264264
elif atype[0] == 'text/plain':

0 commit comments

Comments
 (0)