Skip to content
Snippets Groups Projects
Commit 69b20501 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Add redirect for /favicon.ico

This avoid 404 from browser not supporting link icon header.
parent f463ee35
No related branches found
No related tags found
No related merge requests found
...@@ -632,6 +632,11 @@ ...@@ -632,6 +632,11 @@
return redirect(cdn_url_for('static', filename='fonts/' + name)) return redirect(cdn_url_for('static', filename='fonts/' + name))
@app.route('/favicon.ico')
def favicon():
return redirect(url_for('static', filename='images/favicon.ico'))
@app.errorhandler(HTTPStatus.NOT_FOUND) @app.errorhandler(HTTPStatus.NOT_FOUND)
@cache.cached() @cache.cached()
@add_links(JS_LINK_HEADERS + CSS_LINK_HEADERS) @add_links(JS_LINK_HEADERS + CSS_LINK_HEADERS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment