diff options
author | 2018-03-29 16:41:05 +0100 | |
---|---|---|
committer | 2018-03-29 16:41:05 +0100 | |
commit | 24c7be0894d459c06862c3de6d3c038f517b44e5 (patch) | |
tree | 78711d55c543ebc5d7f0d04a602085711a325505 /templates/errors | |
parent | fixes path to static files in subdomains (#46) (diff) |
Fix error routing and more work on static files
Diffstat (limited to 'templates/errors')
-rw-r--r-- | templates/errors/error.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/errors/error.html b/templates/errors/error.html index 13ff98db..6aeaee02 100644 --- a/templates/errors/error.html +++ b/templates/errors/error.html @@ -5,7 +5,7 @@ {% block beta_error %}{% endblock %} {% block extra_head %} - <link href="/static/css/window.css" rel="stylesheet" type="text/css"/> + <link href="{{ url_for('static', filename='css/window.css') }}" rel="stylesheet" type="text/css"/> <script> window._RequestMethod = "{{ request.method.lower() }}"; @@ -14,8 +14,8 @@ window._Path = "{{ request.path }}"; </script> - <script src="/static/js/typewriter.js" type="application/javascript"></script> - <script src="/static/js/500.js" type="application/javascript"></script> + <script src="{{ url_for('static', filename='js/typewriter.js') }}" type="application/javascript"></script> + <script src="{{ url_for('static', filename='js/500.js') }}" type="application/javascript"></script> {% endblock %} {% block content %} |