[WEB-3762] improvement: redirect logged in user to the workspace after accepting the invitation (#6869)
This commit is contained in:
parent
d62ac6269b
commit
2d0a15efd6
1 changed files with 1 additions and 1 deletions
|
|
@ -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()}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue