[WEB-3762] improvement: redirect logged in user to the workspace after accepting the invitation (#6869)

This commit is contained in:
Prateek Shourya 2025-04-04 16:52:09 +05:30 committed by GitHub
parent d62ac6269b
commit 2d0a15efd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ const WorkspaceInvitationPage = observer(() => {
})
.then(() => {
if (email === currentUser?.email) {
router.push("/invitations");
router.push(`/${invitationDetail.workspace.slug}`);
} else {
router.push(`/?${searchParams.toString()}`);
}