Skip to content

Commit 4f1616f

Browse files
committed
[DOP-23165] remove href
1 parent f732c93 commit 4f1616f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth/keycloakAuth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const keycloakAuthProvider: AuthProvider = {
2020
if (status >= 200 && status < 300) {
2121
localStorage.setItem("username", json.name);
2222
// Using direct window.location.href cause {redirectTo: '/'} doesn't work.
23-
window.location.href = "/";
23+
return { redirectTo: "/" };
2424
}
2525
});
2626
},

0 commit comments

Comments
 (0)