: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(replay-vision): redirect the guessed /replay/vision path (#100476)
posthog[bot]8b44944b298c
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 42cbc24a3b51..f21f03770567 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -440,6 +440,7 @@ export const productRedirects: Record<'/mcp-analytics': (_params, searchParams, hashParams) =>combineUrl(urls.mcpAnalyticsDashboard(), { ...searchParams, landing: 'auto' }, hashParams).url,'/replay-vision/templates': '/replay-vision/new/template',+ '/replay/vision': '/replay-vision','/community-skills': (_params, searchParams, hashParams) =>combineUrl(urls.communitySkills(), searchParams, hashParams).url,'/prompt-management/skills': (_params, searchParams, hashParams) =>diff --git a/frontend/src/scenes/sceneLogic.test.tsx b/frontend/src/scenes/sceneLogic.test.tsxindex 04314aa15196..21af4616a405 100644--- a/frontend/src/scenes/sceneLogic.test.tsx+++ b/frontend/src/scenes/sceneLogic.test.tsx@@ -121,6 +121,13 @@ describe('sceneLogic', () => {expect(removeProjectIdIfPresent(router.values.location.pathname)).toEqual(urls.dataWarehouseSourceNew())})+ it('sends a guessed /replay/vision to replay vision, not the recording-not-found scene', async () => {+ // `/replay/:id` would otherwise match and read `vision` as a recording id.+ router.actions.push('/replay/vision')+ await expectLogic(logic).delay(1)+ expect(removeProjectIdIfPresent(router.values.location.pathname)).toEqual(urls.replayVision())+ })+it('redirects the old /code_review path to /code-review, preserving the ?review= deep link and hash', async () => {router.actions.push('/code_review', { review: 'r-9' }, { panel: 'max:inspect' })await expectLogic(logic).delay(1)diff --git a/products/replay_vision/manifest.tsx b/products/replay_vision/manifest.tsxindex f4fe239dce86..2ce90dd981a7 100644--- a/products/replay_vision/manifest.tsx+++ b/products/replay_vision/manifest.tsx@@ -53,6 +53,9 @@ export const manifest: ProductManifest = {},redirects: {'/replay-vision/templates': '/replay-vision/new/template',+ // People guess the product sits under replay. Without this, `/replay/vision` matches+ // `/replay/:id` and shows "Recording not found".+ '/replay/vision': '/replay-vision',},urls: {replayVision: