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)