diff --git a/server.py b/server.py index 7033dd3..9fbc46d 100644 --- a/server.py +++ b/server.py @@ -1160,7 +1160,7 @@ class App: cookie = self.app_login(parse_qs(url.query).get("t", [""])[0]) if cookie: await self.respond(writer, 302, b"", "text/plain", - "Location: /?start=app\r\n" + self.cookie(cookie, SESSION_TTL)) + f"Location: /?start=app&lang={self.lang or 'en'}\r\n" + self.cookie(cookie, SESSION_TTL)) else: await self.respond(writer, 401, b"invalid app token", "text/plain") return diff --git a/static/index.html b/static/index.html index a5fa999..71835b8 100644 --- a/static/index.html +++ b/static/index.html @@ -17,10 +17,13 @@ DSP ControlVK-Audio