diff --git a/packages/features/ee/users/components/UsersTable.tsx b/packages/features/ee/users/components/UsersTable.tsx index c647d7e183569a..6581c7c2b1dfcd 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