From 0a19b1e32c7d4ad06c22a6056216b94a4dfee7d5 Mon Sep 17 00:00:00 2001 From: Nicolas Graziano Date: Thu, 1 Dec 2022 01:15:32 +0100 Subject: [PATCH] Dashboard, after login use relative url. (#4103) --- esphome/dashboard/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/dashboard/dashboard.py b/esphome/dashboard/dashboard.py index b7c24f9e2e..2153f15a35 100644 --- a/esphome/dashboard/dashboard.py +++ b/esphome/dashboard/dashboard.py @@ -849,7 +849,7 @@ PING_REQUEST = threading.Event() class LoginHandler(BaseHandler): def get(self): if is_authenticated(self): - self.redirect("/") + self.redirect("./") else: self.render_login_page() @@ -894,7 +894,7 @@ class LoginHandler(BaseHandler): password = self.get_argument("password", "") if settings.check_password(username, password): self.set_secure_cookie("authenticated", cookie_authenticated_yes) - self.redirect("/") + self.redirect("./") return error_str = ( "Invalid username or password" if settings.username else "Invalid password"