changeset 69b20501607d in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=69b20501607d
description:
Add redirect for /favicon.ico
This avoid 404 from browser not supporting link icon header.
diffstat:
app.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r f463ee35b55a -r 69b20501607d app.py
--- a/app.py Mon Jul 29 21:54:01 2019 +0200
+++ b/app.py Wed Jul 31 10:10:37 2019 +0200
@@ -632,6 +632,11 @@
return redirect(cdn_url_for('static', filename='fonts/' + name))
[email protected]('/favicon.ico')
+def favicon():
+ return redirect(url_for('static', filename='images/favicon.ico'))
+
+
@app.errorhandler(HTTPStatus.NOT_FOUND)
@cache.cached()
@add_links(JS_LINK_HEADERS + CSS_LINK_HEADERS)