Skip to content

Commit 5b0d534

Browse files
fix(fronted|auth): Fix login redirect
- Fixed login redirect whenever the FQDN was containing `auth` in it. Fixes: #1261
1 parent 40984bf commit 5b0d534

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+
let 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)