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.

fix(signals): keep the project in the observation card's insight link (#110029)

Christiaan Hendriksenbce712573161
diff --git a/products/signals/frontend/inbox/components/detail/ReportObservationCard.tsx b/products/signals/frontend/inbox/components/detail/ReportObservationCard.tsx
index 5dcbed6ec13d..0dd060f5cf6c 100644
--- a/products/signals/frontend/inbox/components/detail/ReportObservationCard.tsx
+++ b/products/signals/frontend/inbox/components/detail/ReportObservationCard.tsx
@@ -53,7 +53,6 @@ export function ReportObservationCard({
<Link
to={openTarget.url}
target="_blank"
- disableClientSideRouting
className="ml-auto flex shrink-0 items-center gap-0.5 whitespace-nowrap"
data-attr="report-primary-metric-open"
>
diff --git a/products/signals/frontend/inbox/components/detail/ReportPrimaryMetric.test.tsx b/products/signals/frontend/inbox/components/detail/ReportPrimaryMetric.test.tsx
index 16e168107cd7..c19948433cbf 100644
--- a/products/signals/frontend/inbox/components/detail/ReportPrimaryMetric.test.tsx
+++ b/products/signals/frontend/inbox/components/detail/ReportPrimaryMetric.test.tsx
@@ -1,3 +1,5 @@
+import { MOCK_TEAM_ID } from 'lib/api.mock'
+
import '@testing-library/jest-dom'
import { cleanup, render, screen, waitFor, within } from '@testing-library/react'
@@ -200,7 +202,7 @@ describe('ReportPrimaryMetric', () => {
expect(source).toHaveTextContent('Last 7 days · 1 filter')
const open = container.querySelector<HTMLAnchorElement>('[data-attr="report-primary-metric-open"]')
expect(open).toHaveTextContent('Open insight')
- expect(open?.getAttribute('href')).toContain('/insights/new')
+ expect(open?.getAttribute('href')).toMatch(new RegExp(`^/project/${MOCK_TEAM_ID}/insights/new`))
})
it('names no query when the viewer cannot see it', () => {