aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2021-04-16 01:19:23 +0800
committerLASER-Yi <[email protected]>2021-04-16 01:19:23 +0800
commitc3c1891f5696cd261e560dceade92f23ab5b6652 (patch)
tree28a2a2c93ccb1fa74e53c59c220570b835e91112
parent385cc214b348815105bc654df3fc710b25a3e620 (diff)
downloadbazarr-c3c1891f5696cd261e560dceade92f23ab5b6652.tar.gz
bazarr-c3c1891f5696cd261e560dceade92f23ab5b6652.zip
Fix app route redirect issues
-rw-r--r--bazarr/main.py3
1 files changed, 3 insertions, 0 deletions
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()
+def page_not_found(e):
+ return redirect(base_url, code=302)
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')