From d0377b9d8dea35d70243c4602e829718259dfdcb Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 26 Sep 2020 20:17:33 +0200 Subject: [PATCH] Fixes issue with favicon --- app/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routes.py b/app/routes.py index 1cf56a3..f1f9a71 100644 --- a/app/routes.py +++ b/app/routes.py @@ -179,8 +179,11 @@ def search(): return render_template('search.html', form = form, config=config) @app.route('/u/') +@app.route('/') @login_required def u(username): + if username = "favicon.ico": + return redirect(url_for('static',filename='favicons/favicon.ico')) form = EmptyForm() avatarPath = "img/avatars/{}.png".format(str(random.randint(1,12))) user = getTwitterUserInfo(username)