Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Impersonation issue from userstable (#18608)

Anik Dhabal Babu8cc61a1fe9d1
diff --git a/packages/features/ee/users/components/UsersTable.tsx b/packages/features/ee/users/components/UsersTable.tsx
index c647d7e1835..6581c7c2b1d 100644
--- a/packages/features/ee/users/components/UsersTable.tsx
+++ b/packages/features/ee/users/components/UsersTable.tsx
@@ -121,8 +121,7 @@ function UsersTableBare() {
});
const handleImpersonateUser = async (username: string | null) => {
- await signIn("impersonation-auth", { redirect: false, username: username });
- router.push(`/event-types`);
+ await signIn("impersonation-auth", { username: username, callbackUrl: `${WEBAPP_URL}/event-types` });
};
//we must flatten the array of arrays from the useInfiniteQuery hook