aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-09-17 22:53:17 -0700
committerBryan Newbold <bnewbold@archive.org>2020-09-17 22:53:20 -0700
commitbaed2366bc44ddb143cb57217f76b6ebe61f0e02 (patch)
tree8555f21d3a2e95f728fe0f5783880914034fd57f /fatcat_scholar
parent757a15e3cd0838df67bed4b5f2a80bc394ebd8dc (diff)
downloadfatcat-scholar-baed2366bc44ddb143cb57217f76b6ebe61f0e02.tar.gz
fatcat-scholar-baed2366bc44ddb143cb57217f76b6ebe61f0e02.zip
direct static asset links, to fix http downgrade
There is/was an issue in starlette repo about having url_for() do the right thing when behind a reverse proxy: https://github.com/encode/starlette/issues/538#issuecomment-548795041 but really there is no need, we can just point to the static assets directly.
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/base.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index e3d03ca..4c95501 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -114,7 +114,7 @@
crossorigin="anonymous">
<link rel="icon"
type="image/x-icon"
- href="{{ url_for('static', path='/ia-favicon.ico') }}">
+ href="/static/ia-favicon.ico">
{% block extra_head %}{% endblock %}
</head>
@@ -129,8 +129,8 @@
</div>
{% endif %}
<a href="https://archive.org/" class="header item">
- <img class="logo" src="{{ url_for('static', path='/ia-logo.svg') }}" style="width: 20px;">
- <img class="mobile-hide" src="{{ url_for('static', path='/ia-wordmark.svg') }}" style="margin-left: 10px; width: 180px;">
+ <img class="logo" src="/static/ia-logo.svg" style="width: 20px;">
+ <img class="mobile-hide" src="/static/ia-wordmark.svg" style="margin-left: 10px; width: 180px;">
</a>
<span style="margin-top: 0.5em;">
<a class="ui grey label" style="background-color: #fbbd08a6;" href="/#alphanotice"><i>alpha</i></a>
@@ -200,7 +200,7 @@
<div class="nine wide column">
<div class="ui grid">
<div class="three wide two wide computer column" style="padding-top: 4em; padding-right: 0;">
- <img class="logo" src="{{ url_for('static', path='/ia-logo.svg') }}" style="width: 100%; opacity: 0.5;">
+ <img class="logo" src="/ia-logo.svg" style="width: 100%; opacity: 0.5;">
</div>
<div class="one wide column computer only"></div>
<div class="thirteen wide eleven wide computer column">