diff options
author | LASER-Yi <[email protected]> | 2021-04-16 01:19:23 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2021-04-16 01:19:23 +0800 |
commit | c3c1891f5696cd261e560dceade92f23ab5b6652 (patch) | |
tree | 28a2a2c93ccb1fa74e53c59c220570b835e91112 | |
parent | 385cc214b348815105bc654df3fc710b25a3e620 (diff) | |
download | bazarr-c3c1891f5696cd261e560dceade92f23ab5b6652.tar.gz bazarr-c3c1891f5696cd261e560dceade92f23ab5b6652.zip |
Fix app route redirect issues
-rw-r--r-- | bazarr/main.py | 3 |
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() [email protected](404) +def page_not_found(e): + return redirect(base_url, code=302) @app.route('/', defaults={'path': ''}) @app.route('/<path:path>') |