From b18cdb9188cea74ff159b657bbbb1c304b00cd24 Mon Sep 17 00:00:00 2001 From: s1shed Date: Tue, 1 Jul 2025 15:40:33 +0300 Subject: [PATCH] Redirect to $baseUrl after auth with passkey instead of / (#482) Fixes: #481 --- public/webauthn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/webauthn.ts b/public/webauthn.ts index 13b7ed0..df942a5 100644 --- a/public/webauthn.ts +++ b/public/webauthn.ts @@ -155,7 +155,7 @@ async function loginWithPasskey() { } setTimeout(() => { - window.location.href = '/'; + window.location.href = `${baseUrl}`; }, 100); } catch (error) { console.error('Login error:', error);