From c3c1891f5696cd261e560dceade92f23ab5b6652 Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Fri, 16 Apr 2021 01:19:23 +0800 Subject: [PATCH] Fix app route redirect issues --- bazarr/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bazarr/main.py b/bazarr/main.py index e16c8c113..bd23d6058 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -57,6 +57,9 @@ login_auth = settings.auth.type update_notifier() +@app.errorhandler(404) +def page_not_found(e): + return redirect(base_url, code=302) @app.route('/', defaults={'path': ''}) @app.route('/')