Skip to content

Commit 51cae4e

Browse files
georges-armTamarChristinaArm
authored andcommitted
LNT: Use relative URLs for Javascript-based URLs.
Having _external=True seems to break links when LNT is hosted behind a reverse-proxy. This has been observed previously as https://reviews.llvm.org/D85425 for example. Reviewed By: thopre Differential Revision: https://reviews.llvm.org/D93116
1 parent 71665a1 commit 51cae4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnt/server/ui/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8"/>
55

6-
<script>var lnt_url_base="{{ url_for('.index', _external=True) }}".replace(/\/$/, "");</script>
6+
<script>var lnt_url_base="{{ url_for('.index', _external=False) }}".replace(/\/$/, "");</script>
77
<link href="{{ url_for('.static', filename='bootstrap/css/bootstrap.min.css')
88
}}" rel="stylesheet" media="screen"/>
99
<link href="{{ url_for('.static', filename='bootstrap/css/bootstrap-responsive.min.css')

0 commit comments

Comments
 (0)