Skip to content

Commit 9c1e323

Browse files
FE: Auth: Fix /login redirect loop (#1265)
Co-authored-by: German Osin <[email protected]>
1 parent d09fe32 commit 9c1e323

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/lib/hooks/api/appConfig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ export function useAppInfo() {
3838
response = {};
3939
}
4040

41+
const url = new URL(data.raw.url);
4142
return {
42-
redirect: data.raw.url.includes('auth'),
43+
redirect: url.pathname.includes('auth'),
4344
response,
4445
};
4546
});

0 commit comments

Comments
 (0)