fix(webui): prevent infinite redirect loop between /signup and /login

This commit is contained in:
yiling
2026-06-08 16:08:41 +08:00
parent 22e0f95748
commit 5333d17c7c
2 changed files with 26 additions and 25 deletions
+1
View File
@@ -11,6 +11,7 @@ const customFetch = async (input: RequestInfo | URL, init?: RequestInit) => {
// Don't redirect if we are already on login page, it's an auth request, or we are on a public share page
if (
!window.location.pathname.includes('/login') &&
!window.location.pathname.includes('/signup') &&
!window.location.pathname.startsWith('/share/') &&
!url.includes('/api/authn')
) {