From ad16acb88f0d9e4eb0b4d7ba88add7380fe5cd42 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 1 Apr 2024 10:01:09 -0400 Subject: [PATCH] Fixed improper redirection from login page when base_url isn't empty. --- bazarr/app/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/app/ui.py b/bazarr/app/ui.py index 925b25912..540c26d68 100644 --- a/bazarr/app/ui.py +++ b/bazarr/app/ui.py @@ -68,7 +68,7 @@ def check_login(actual_method): def catch_all(path): if path.startswith('login') and settings.auth.type not in ['basic', 'form']: # login page has been accessed when no authentication is enabled - return redirect('/', code=302) + return redirect(base_url or "/", code=302) auth = True if settings.auth.type == 'basic':