Skip to content

Commit

Permalink
console - add workspace name to web page title
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Jan 27, 2025
1 parent 70852f9 commit 4088245
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webapps/console/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,12 @@ const WorkspaceLoader: React.FC<
analytics.page("Workspace Page", {
context: { workspaceId: workspace.id, groupId: workspace.id },
});
const newTitle = `Jitsu - ${workspace.name}`;
if (document.title !== newTitle) {
document.title = newTitle;
}
}
}, [analytics, router.asPath, workspace?.id]);
}, [analytics, router.asPath, workspace?.id, workspace?.name]);

/* eslint-disable react-hooks/exhaustive-deps */
//user may be a new object on each render while being the same user
Expand Down

0 comments on commit 4088245

Please sign in to comment.