Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(inbox): open report from bare /inbox/<id> deep-link (#64771)

Michael Matloka134a06c8dc21
diff --git a/frontend/src/scenes/inbox/inboxSceneLogic.ts b/frontend/src/scenes/inbox/inboxSceneLogic.ts
index c8bf7692b6d8..4305e297ec98 100644
--- a/frontend/src/scenes/inbox/inboxSceneLogic.ts
+++ b/frontend/src/scenes/inbox/inboxSceneLogic.ts
@@ -268,6 +268,15 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([
}
},
[urls.inbox(':tab')]: ({ tab }: { tab?: string }) => {
+ // A bare report deep-link `/inbox/<reportId>` redirected to report form
+ if (tab && !isInboxTabKey(tab) && tab !== 'scouts') {
+ router.actions.replace(
+ urls.inboxReport('reports', tab),
+ router.values.searchParams,
+ router.values.hashParams
+ )
+ return
+ }
// Staff-only tabs (Runs, Not actionable): bounce non-staff to the default tab.
if (isStaffOnlyTab(tab) && userLogic.values.user != null && !values.isStaff) {
actions.setActiveTab('pulls')