Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

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

Prateek Shourya2d0a15efd69b
diff --git a/web/app/workspace-invitations/page.tsx b/web/app/workspace-invitations/page.tsx
index 8d981fff42..524393755f 100644
--- a/web/app/workspace-invitations/page.tsx
+++ b/web/app/workspace-invitations/page.tsx
@@ -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()}`);
}