diff --git a/app/routes.py b/app/routes.py index 8ba9a4d..a9b4d98 100644 --- a/app/routes.py +++ b/app/routes.py @@ -49,6 +49,8 @@ def logout(): @main.route('/', methods=['GET']) def landing(): + if current_user.is_authenticated: + return redirect(url_for('main.dashboard')) return render_template('landing.html') @main.route('/dashboard', methods=['GET', 'POST'])