: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(error-tracking): make /error-tracking the canonical url and redirect old paths (#116884)
Paul D'Ambrae2b55b9d4024
diff --git a/docs/onboarding/error-tracking/kmp.tsx b/docs/onboarding/error-tracking/kmp.tsxindex 770c26b0c3bb..891665596c0b 100644--- a/docs/onboarding/error-tracking/kmp.tsx+++ b/docs/onboarding/error-tracking/kmp.tsx@@ -150,7 +150,7 @@ export const getKMPErrorTrackingSteps = (ctx: OnboardingComponentsContext): Stepcontent: (<Markdown>Capture a test exception, flush queued events with `PostHog.flush()`, and confirm the exception appears- in [Error tracking](https://app.posthog.com/error_tracking). Unhandled mobile crashes are persisted and+ in [Error tracking](https://app.posthog.com/error-tracking). Unhandled mobile crashes are persisted andsent after the app launches again.</Markdown>),diff --git a/docs/onboarding/error-tracking/roblox.tsx b/docs/onboarding/error-tracking/roblox.tsxindex c4f31604596e..bbd30afae3ba 100644--- a/docs/onboarding/error-tracking/roblox.tsx+++ b/docs/onboarding/error-tracking/roblox.tsx@@ -116,7 +116,7 @@ export const getRobloxSteps = (ctx: OnboardingComponentsContext): StepDefinition<><Markdown>{dedent`- Raise a test error from a server \`Script\` and confirm it appears in [Error tracking](https://app.posthog.com/error_tracking).+ Raise a test error from a server \`Script\` and confirm it appears in [Error tracking](https://app.posthog.com/error-tracking).`}</Markdown><CodeBlock language="lua" code='error("Automatic test exception from Roblox")' />diff --git a/docs/onboarding/error-tracking/rust.tsx b/docs/onboarding/error-tracking/rust.tsxindex 0d1bcc402520..1e9d5244880d 100644--- a/docs/onboarding/error-tracking/rust.tsx+++ b/docs/onboarding/error-tracking/rust.tsx@@ -111,7 +111,7 @@ export const getRustSteps = (ctx: OnboardingComponentsContext): StepDefinition[]content: (<Markdown>{dedent`- Capture a test error and confirm it appears in [Error tracking](https://app.posthog.com/error_tracking).+ Capture a test error and confirm it appears in [Error tracking](https://app.posthog.com/error-tracking).`}</Markdown>),diff --git a/docs/onboarding/error-tracking/unity.tsx b/docs/onboarding/error-tracking/unity.tsxindex e2851730dc1e..5f93ac4e2c78 100644--- a/docs/onboarding/error-tracking/unity.tsx+++ b/docs/onboarding/error-tracking/unity.tsx@@ -86,7 +86,7 @@ export const getUnitySteps = (ctx: OnboardingComponentsContext): StepDefinition[<><Markdown>{dedent`- Report a test exception through Unity's logger and confirm it appears in [Error tracking](https://app.posthog.com/error_tracking).+ Report a test exception through Unity's logger and confirm it appears in [Error tracking](https://app.posthog.com/error-tracking).`}</Markdown><CodeBlockdiff --git a/ee/hogai/context/entity_search/context.py b/ee/hogai/context/entity_search/context.pyindex 5844cea3eb1a..68409724ad08 100644--- a/ee/hogai/context/entity_search/context.py+++ b/ee/hogai/context/entity_search/context.py@@ -581,7 +581,7 @@ class EntitySearchContext:case "survey":return f"{base_url}/surveys/{result_id}"case "error_tracking_issue":- return f"{base_url}/error_tracking/{result_id}"+ return f"{base_url}/error-tracking/{result_id}"case "alert_configuration":return f"{base_url}/alerts?alert_id={result_id}"case "hog_flow":diff --git a/ee/hogai/context/entity_search/test/test_context.py b/ee/hogai/context/entity_search/test/test_context.pyindex a137fff61bcc..e2e96e182212 100644--- a/ee/hogai/context/entity_search/test/test_context.py+++ b/ee/hogai/context/entity_search/test/test_context.py@@ -56,7 +56,7 @@ class TestEntitySearchContext(NonAtomicBaseTest):("action", "test_action_id", "/project/{team_id}/data-management/actions/test_action_id"),("cohort", "test_cohort_id", "/project/{team_id}/cohorts/test_cohort_id"),("survey", "test_survey_id", "/project/{team_id}/surveys/test_survey_id"),- ("error_tracking_issue", "test_issue_id", "/project/{team_id}/error_tracking/test_issue_id"),+ ("error_tracking_issue", "test_issue_id", "/project/{team_id}/error-tracking/test_issue_id"),("notebook", "test_notebook_id", "/project/{team_id}/notebooks/test_notebook_id"),("alert_configuration", "test_alert_id", "/project/{team_id}/alerts?alert_id=test_alert_id"),("account", "test_account_id", "/project/{team_id}/customer_analytics/accounts/test_account_id"),diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/buildNotificationSourcePath.test.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/buildNotificationSourcePath.test.tsindex 1c47f0605610..121d2f037fde 100644--- a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/buildNotificationSourcePath.test.ts+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/buildNotificationSourcePath.test.ts@@ -73,7 +73,7 @@ describe('buildNotificationSourcePath', () => {source_id: 'issue-uuid',}))- expect(result).toBe('/error_tracking/issue-uuid')+ expect(result).toBe('/error-tracking/issue-uuid')})it('builds path from source_type and source_id for ticket', () => {diff --git a/frontend/src/lib/components/AgentObjectTags/objectKinds.generated.ts b/frontend/src/lib/components/AgentObjectTags/objectKinds.generated.tsindex bcc3d531fc31..22cce29aab08 100644--- a/frontend/src/lib/components/AgentObjectTags/objectKinds.generated.ts+++ b/frontend/src/lib/components/AgentObjectTags/objectKinds.generated.ts@@ -59,7 +59,7 @@ export const OBJECT_KIND_DATA = {idPattern: null,block: false,idIsBody: false,- urlAliases: [],+ urlAliases: ['/error-tracking/{id}'],},replay: {kindLabel: 'Session replay',diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 1416545e1f31..e1ff54b0678d 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -1,7 +1,7 @@/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */// Generated by build-products.mjs – DO NOT EDIT BY HAND.-import { combineUrl } from 'kea-router'+import { combineUrl, router } from 'kea-router'import posthog from 'posthog-js'import type { ProductSetupProbe } from 'lib/components/ProductEmptyState/setupProbes'@@ -234,11 +234,11 @@ export const productRoutes: Record<string, [string, string]> = {'EngineeringAnalyticsWorkflowRuns','engineeringAnalyticsWorkflowRuns',],- '/error_tracking': ['ErrorTracking', 'errorTracking'],- '/error_tracking/fingerprint/*': ['ErrorTrackingFingerprint', 'errorTrackingFingerprint'],- '/error_tracking/alerts/new/:templateId': ['HogFunction', 'errorTrackingAlertNew'],- '/error_tracking/alerts/:id': ['HogFunction', 'errorTrackingAlert'],- '/error_tracking/:id': ['ErrorTrackingIssue', 'errorTrackingIssue'],+ '/error-tracking': ['ErrorTracking', 'errorTracking'],+ '/error-tracking/fingerprint/*': ['ErrorTrackingFingerprint', 'errorTrackingFingerprint'],+ '/error-tracking/alerts/new/:templateId': ['HogFunction', 'errorTrackingAlertNew'],+ '/error-tracking/alerts/:id': ['HogFunction', 'errorTrackingAlert'],+ '/error-tracking/:id': ['ErrorTrackingIssue', 'errorTrackingIssue'],'/experiments': ['Experiments', 'experiments'],'/experiments/staff': ['ExperimentsStaffTools', 'experimentsStaffTools'],'/feature_flags/templates': ['FeatureFlagTemplates', 'featureFlagTemplates'],@@ -526,7 +526,7 @@ export const productRedirects: Record<'/engineering-analytics/health': (_params, searchParams, hashParams): string =>combineUrl(urls.engineeringAnalyticsDeploys(), searchParams, hashParams).url,'/error_tracking/:id/fingerprints': (params) =>- combineUrl(`/error_tracking/${params.id}`, { manageFingerprints: 'true' }).url,+ combineUrl(`/error-tracking/${params.id}`, { manageFingerprints: 'true' }).url,'/error_tracking/configuration': (_params, searchParams, hashParams) =>configurationRedirect(resolveSettingSlug(searchParams.tab), searchParams, hashParams),'/error_tracking/configuration/:tab': (params, searchParams, hashParams) =>@@ -539,6 +539,20 @@ export const productRedirects: Record<configurationRedirect('error-tracking-symbol-sets', searchParams, hashParams),'/error_tracking/symbol-sets': (_params, searchParams, hashParams) =>configurationRedirect('error-tracking-symbol-sets', searchParams, hashParams),+ '/errors': (_params, searchParams, hashParams) => combineUrl('/error-tracking', searchParams, hashParams).url,+ '/error_tracking': (_params, searchParams, hashParams) =>+ combineUrl('/error-tracking', searchParams, hashParams).url,+ '/error_tracking/fingerprint/*': (_params, searchParams, hashParams) => {+ const [, rawFingerprint = ''] =+ router.values.location.pathname.match(/\/error_tracking\/fingerprint\/([^/]+)\/?$/) ?? []+ return combineUrl(`/error-tracking/fingerprint/${rawFingerprint}`, searchParams, hashParams).url+ },+ '/error_tracking/alerts/new/:templateId': ({ templateId }, searchParams, hashParams) =>+ combineUrl(`/error-tracking/alerts/new/${templateId}`, searchParams, hashParams).url,+ '/error_tracking/alerts/:id': ({ id }, searchParams, hashParams) =>+ combineUrl(`/error-tracking/alerts/${id}`, searchParams, hashParams).url,+ '/error_tracking/:id': ({ id }, searchParams, hashParams) =>+ combineUrl(`/error-tracking/${id}`, searchParams, hashParams).url,'/logs/sampling/new': (_params, searchParams, hashParams) =>combineUrl('/logs/drop-rules/new', searchParams, hashParams).url,'/logs/sampling/:id': (params, searchParams, hashParams) =>@@ -1617,9 +1631,9 @@ export const productUrls = {`/engineering-analytics/repos/${encodeURIComponent(repoOwner)}/${encodeURIComponent(repoName)}/actions/workflows/${encodeURIComponent(workflowName)}`,engineeringAnalyticsAuthor: (handle: string, repo?: string | null): string =>`${repo ? `/engineering-analytics/repos/${repo.split('/').map(encodeURIComponent).join('/')}` : '/engineering-analytics'}/authors/${encodeURIComponent(handle)}`,- errorTracking: (params = {}): string => combineUrl('/error_tracking', params).url,+ errorTracking: (params = {}): string => combineUrl('/error-tracking', params).url,errorTrackingConfiguration: (params = {}): string =>- combineUrl('/error_tracking', { ...params, activeTab: 'configuration' }).url,+ combineUrl('/error-tracking', { ...params, activeTab: 'configuration' }).url,errorTrackingIssue: (id: string,params: {@@ -1632,15 +1646,15 @@ export const productUrls = {utm_campaign?: stringutm_medium?: string} = {}- ): string => combineUrl(`/error_tracking/${id}`, params).url,+ ): string => combineUrl(`/error-tracking/${id}`, params).url,errorTrackingFingerprint: (fingerprint: string,params: {timestamp?: string} = {}- ): string => combineUrl(`/error_tracking/fingerprint/${encodeURIComponent(fingerprint)}`, params).url,- errorTrackingAlert: (id: string): string => `/error_tracking/alerts/${id}`,- errorTrackingAlertNew: (templateId: string): string => `/error_tracking/alerts/new/${templateId}`,+ ): string => combineUrl(`/error-tracking/fingerprint/${encodeURIComponent(fingerprint)}`, params).url,+ errorTrackingAlert: (id: string): string => `/error-tracking/alerts/${id}`,+ errorTrackingAlertNew: (templateId: string): string => `/error-tracking/alerts/new/${templateId}`,experiment: (id: string | number,formMode?: string | null,diff --git a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.tsindex 1882f57130e4..d3465f3b4d5c 100644--- a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts+++ b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts@@ -12,13 +12,13 @@ import {} from '~/types'// Deep link used in error tracking alert messages. Routes through the fingerprint redirect page-// (/error_tracking/fingerprint/<fingerprint>) so links stay valid even after issues are merged.+// (/error-tracking/fingerprint/<fingerprint>) so links stay valid even after issues are merged.// Also used by the onboarding alert setup (onboardingErrorTrackingAlertsLogic) — keep the format// in one place so URL changes can't drift between the two surfaces.// encodeURLComponent mirrors JS encodeURIComponent, which leaves `(` and `)` unescaped — a `)` in a// fingerprint would close the surrounding markdown link `[text](url)` early, so encode them too.export const errorTrackingIssueLinkHogTemplate = (medium: string): string =>- `{project.url}/error_tracking/fingerprint/{replaceAll(replaceAll(encodeURLComponent(event.properties.fingerprint), '(', '%28'), ')', '%29')}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=${medium}`+ `{project.url}/error-tracking/fingerprint/{replaceAll(replaceAll(encodeURLComponent(event.properties.fingerprint), '(', '%28'), ')', '%29')}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=${medium}`// In single-exec mode $mcp_tool_name is always the 'exec' dispatcher; the inner tool the agent// actually invoked rides on $mcp_exec_tool_call_name. Rejected calls only carry the target.diff --git a/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.ts b/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.tsindex a3723bfce82c..fc9a9a51f648 100644--- a/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.ts+++ b/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.ts@@ -653,7 +653,7 @@ describe('onboardingLogic — flow composition', () => {[ProductKey.SESSION_REPLAY, /replay/i],[ProductKey.FEATURE_FLAGS, /feature_flag/i],[ProductKey.SURVEYS, /survey/i],- [ProductKey.ERROR_TRACKING, /error_tracking/i],+ [ProductKey.ERROR_TRACKING, /error-tracking/i],[ProductKey.AI_OBSERVABILITY, /ai-observability/i],[ProductKey.WORKFLOWS, /workflow/i],[ProductKey.LOGS, /log/i],diff --git a/frontend/src/scenes/sceneSmoke.test.tsx b/frontend/src/scenes/sceneSmoke.test.tsxindex 7c05ed7e65f1..f8b76e96da94 100644--- a/frontend/src/scenes/sceneSmoke.test.tsx+++ b/frontend/src/scenes/sceneSmoke.test.tsx@@ -60,7 +60,7 @@ const HIGH_TRAFFIC_SCENES: [name: string, path: string][] = [['experiments', '/experiments'],['surveys', '/surveys'],['activity events', '/activity/events'],- ['error tracking', '/error_tracking'],+ ['error tracking', '/error-tracking'],['sql editor', '/sql'],['engineering analytics', '/engineering-analytics'],['project settings', '/settings/project'],diff --git a/posthog/object_tags/kinds.py b/posthog/object_tags/kinds.pyindex c0c0d450a7ff..d5bdcb5bd557 100644--- a/posthog/object_tags/kinds.py+++ b/posthog/object_tags/kinds.py@@ -71,6 +71,7 @@ OBJECT_KINDS: dict[str, ObjectKindSpec] = {kind_label="Error issue",source="Error tracking",path_template="/error_tracking/{id}",+ url_aliases=("/error-tracking/{id}",),),"replay": ObjectKindSpec(kind_label="Session replay",diff --git a/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html b/posthog/templates/admin/data_warehouse/externaldataschema/change_form.htmlindex 661e058c38b8..bc711f84a351 100644--- a/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html+++ b/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html@@ -493,7 +493,7 @@{{ job.latest_error|truncatechars:80 }}</span><br>- <a href="{{ site_url }}/project/{{ team_id }}/error_tracking?searchQuery={{ job.latest_error|truncatechars:200|urlencode }}"+ <a href="{{ site_url }}/project/{{ team_id }}/error-tracking?searchQuery={{ job.latest_error|truncatechars:200|urlencode }}"target="_blank"style="font-size: 11px">View in error tracking</a>{% else %}diff --git a/products/desktop/packages/core/src/canvas/contextDocument.test.ts b/products/desktop/packages/core/src/canvas/contextDocument.test.tsindex afef5f00faef..4ae00f5d5c66 100644--- a/products/desktop/packages/core/src/canvas/contextDocument.test.ts+++ b/products/desktop/packages/core/src/canvas/contextDocument.test.ts@@ -180,6 +180,16 @@ describe("contextDocument", () => {"https://us.posthog.com/project/1/feature_flags/8","flag",],+ [+ "an error issue at the canonical path",+ "https://us.posthog.com/project/1/error-tracking/0190f8a1-5e3b",+ "error",+ ],+ [+ "an error issue at the legacy path",+ "https://us.posthog.com/project/1/error_tracking/0190f8a1-5e3b",+ "error",+ ],["the same path on another host","https://attacker.example/project/1/feature_flags/8",diff --git a/products/desktop/packages/core/src/canvas/contextDocument.ts b/products/desktop/packages/core/src/canvas/contextDocument.tsindex a534db86dd1e..9266fb407499 100644--- a/products/desktop/packages/core/src/canvas/contextDocument.ts+++ b/products/desktop/packages/core/src/canvas/contextDocument.ts@@ -324,7 +324,7 @@ const OBJECT_PATH_RULES: { kind: ContextObjectKind; re: RegExp }[] = [{ kind: "flag", re: /^\/feature_flags\/(\d+)/ },{ kind: "experiment", re: /^\/experiments\/(\d+)/ },{ kind: "survey", re: /^\/surveys\/([^/?#]+)/ },- { kind: "error", re: /^\/error_tracking\/([0-9a-f-]{8,})/i },+ { kind: "error", re: /^\/error[_-]tracking\/([0-9a-f-]{8,})/i },{ kind: "replay", re: /^\/replay\/([^/?#]+)/ },{ kind: "notebook", re: /^\/notebooks\/([^/?#]+)/ },{ kind: "cohort", re: /^\/cohorts\/(\d+)/ },diff --git a/products/desktop/packages/core/src/inbox/objectKinds.generated.ts b/products/desktop/packages/core/src/inbox/objectKinds.generated.tsindex 3289e8986d8b..dfdb6d25a2f1 100644--- a/products/desktop/packages/core/src/inbox/objectKinds.generated.ts+++ b/products/desktop/packages/core/src/inbox/objectKinds.generated.ts@@ -59,7 +59,7 @@ export const OBJECT_KIND_DATA = {idPattern: null,block: false,idIsBody: false,- urlAliases: [],+ urlAliases: ["/error-tracking/{id}"],},replay: {kindLabel: "Session replay",diff --git a/products/desktop/packages/core/src/posthog-objects/objectUrls.test.ts b/products/desktop/packages/core/src/posthog-objects/objectUrls.test.tsindex c8cbe1a56977..e9790b52aa22 100644--- a/products/desktop/packages/core/src/posthog-objects/objectUrls.test.ts+++ b/products/desktop/packages/core/src/posthog-objects/objectUrls.test.ts@@ -25,6 +25,8 @@ describe("parsePostHogObjectUrl", () => {[`${PROJECT}/sql?open_query=${HOGQL_NODE}`, ["hogql", "SELECT 1"]],[`${PROJECT}/insights/new#q=${HOGQL_NODE}`, ["hogql", "SELECT 1"]],[`${PROJECT}/replay/0190-s1?t=30`, ["replay", "0190-s1"]],+ [`${PROJECT}/error-tracking/0190-e1`, ["error", "0190-e1"]],+ [`${PROJECT}/error_tracking/0190-e1`, ["error", "0190-e1"]],[`${PROJECT}/replay/home?sessionRecordingId=0190-s1`,["replay", "0190-s1"],diff --git a/products/error_tracking/backend/logic/__init__.py b/products/error_tracking/backend/logic/__init__.pyindex 341b4f20789e..c4a2a58aaf8e 100644--- a/products/error_tracking/backend/logic/__init__.py+++ b/products/error_tracking/backend/logic/__init__.py@@ -150,8 +150,8 @@ def build_issue_permalink_path(*, project_id: int, issue_id: UUID | str, fingerpplain issue URL when the issue has no fingerprints."""if fingerprint is None:- return f"/project/{project_id}/error_tracking/{issue_id}"- return f"/project/{project_id}/error_tracking/fingerprint/{quote(fingerprint, safe='')}"+ return f"/project/{project_id}/error-tracking/{issue_id}"+ return f"/project/{project_id}/error-tracking/fingerprint/{quote(fingerprint, safe='')}"def get_issue_permalink_by_fingerprint(team_id: int, issue_id: UUID) -> str:diff --git a/products/error_tracking/backend/logic/github_external_references.py b/products/error_tracking/backend/logic/github_external_references.pyindex 73469a72e77c..944d1c9a76e2 100644--- a/products/error_tracking/backend/logic/github_external_references.py+++ b/products/error_tracking/backend/logic/github_external_references.py@@ -114,7 +114,7 @@ def prepare_jobs(event_type: str, payload: dict[str, Any]) -> list[contracts.Gitdef _extract_posthog_issue_references(body: str) -> list[_PostHogIssueReference]:site_url = re.escape(settings.SITE_URL.rstrip("/"))pattern = re.compile(- rf"{site_url}/project/(?P<team_id>[1-9][0-9]*)/error_tracking/"+ rf"{site_url}/project/(?P<team_id>[1-9][0-9]*)/error[_-]tracking/"rf"(?:fingerprint/(?P<fingerprint>[^/?#\s<>\]\)]+)|"rf"(?P<issue_id>[0-9a-fA-F]{{8}}-[0-9a-fA-F]{{4}}-[0-9a-fA-F]{{4}}-"rf"[0-9a-fA-F]{{4}}-[0-9a-fA-F]{{12}}))"diff --git a/products/error_tracking/backend/temporal/health_checks/missing_source_maps.py b/products/error_tracking/backend/temporal/health_checks/missing_source_maps.pyindex 1f7a42482491..fad852c1c6b3 100644--- a/products/error_tracking/backend/temporal/health_checks/missing_source_maps.py+++ b/products/error_tracking/backend/temporal/health_checks/missing_source_maps.py@@ -8,7 +8,7 @@ from posthog.temporal.health_checks.models import HealthCheckResultfrom products.error_tracking.backend.logic.recommendations.source_maps import SourceMapsRecommendationfrom products.error_tracking.backend.models import ErrorTrackingRecommendation-RECOMMENDATIONS_PATH = "/error_tracking?activeTab=recommendations"+RECOMMENDATIONS_PATH = "/error-tracking?activeTab=recommendations"SOURCE_MAPS_DOCS_URL = "https://posthog.com/docs/error-tracking/upload-source-maps"# Same command the source maps fix wizard modal shows (sourceMapsFixWizardLogic.wizardCommand).WIZARD_COMMAND = "npx -y @posthog/wizard@latest upload-source-maps"diff --git a/products/error_tracking/backend/test/test_facade_api.py b/products/error_tracking/backend/test/test_facade_api.pyindex d4f1a9d9d2e4..fad04c296b10 100644--- a/products/error_tracking/backend/test/test_facade_api.py+++ b/products/error_tracking/backend/test/test_facade_api.py@@ -126,7 +126,7 @@ class TestErrorTrackingFacadeAPI(BaseTest):attachment_url = mock_create_issue.call_args.args[0]assert mock_create_issue.call_args.args[1]["title"] == "Checkout TypeError"- assert attachment_url.endswith(f"/project/{self.team.id}/error_tracking/fingerprint/fp%2Fwith%23chars")+ assert attachment_url.endswith(f"/project/{self.team.id}/error-tracking/fingerprint/fp%2Fwith%23chars")assert reference.external_id == "LIN-1"assert reference.title == "Checkout TypeError"@@ -155,7 +155,7 @@ class TestErrorTrackingFacadeAPI(BaseTest):)attachment_url = mock_create_issue.call_args.args[0]- assert attachment_url.endswith(f"/project/{self.team.id}/error_tracking/{issue.id}")+ assert attachment_url.endswith(f"/project/{self.team.id}/error-tracking/{issue.id}")@override_settings(ATLASSIAN_APP_CLIENT_ID="atlassian-client-id", ATLASSIAN_APP_CLIENT_SECRET="atlassian-secret")@patch("products.error_tracking.backend.logic.external_references.JiraIntegration.create_issue")@@ -205,7 +205,7 @@ class TestErrorTrackingFacadeAPI(BaseTest):mock_create_issue.assert_not_called()linked_issue_id, attachment_url = mock_create_attachment.call_args.argsassert linked_issue_id == "ENG-42"- assert f"/project/{self.team.id}/error_tracking/" in attachment_url+ assert f"/project/{self.team.id}/error-tracking/" in attachment_urlassert reference.external_url == "https://linear.app/acme/issue/ENG-42"assert reference.external_id == "ENG-42"assert reference.title == "Checkout TypeError"diff --git a/products/error_tracking/backend/test/test_github_external_references.py b/products/error_tracking/backend/test/test_github_external_references.pyindex f45dec118ffd..65447ea252b7 100644--- a/products/error_tracking/backend/test/test_github_external_references.py+++ b/products/error_tracking/backend/test/test_github_external_references.py@@ -212,7 +212,7 @@ class TestGitHubExternalReferences(BaseTest):body = "\n".join([- f"https://app.example.com/project/{self.team.id}/error_tracking/{direct_issue.id}",+ f"https://app.example.com/project/{self.team.id}/error-tracking/{direct_issue.id}",(f"https://app.example.com/project/{self.team.id}/error_tracking/fingerprint/"f"{quote(fingerprint, safe='')}"diff --git a/products/error_tracking/backend/test/test_weekly_digest.py b/products/error_tracking/backend/test/test_weekly_digest.pyindex a707d628347e..a7727dc636bc 100644--- a/products/error_tracking/backend/test/test_weekly_digest.py+++ b/products/error_tracking/backend/test/test_weekly_digest.py@@ -217,7 +217,7 @@ class TestWeeklyDigest(ClickhouseTestMixin, APIBaseTest):assert result[0]["occurrence_count"] == 5assert result[1]["name"] == "RareError"assert result[1]["occurrence_count"] == 2- assert "/error_tracking/" in result[0]["url"]+ assert "/error-tracking/" in result[0]["url"]def test_get_top_issues_sparkline_is_chronological(self):issue = self._create_issue(name="SparklineTest")diff --git a/products/error_tracking/backend/tests/test_alert_delivery.py b/products/error_tracking/backend/tests/test_alert_delivery.pyindex d89e6cb2d19a..ecf391f916c2 100644--- a/products/error_tracking/backend/tests/test_alert_delivery.py+++ b/products/error_tracking/backend/tests/test_alert_delivery.py@@ -273,10 +273,10 @@ class TestAlertMessages(SimpleTestCase):inputs = AlertDeliveryWorkflowInputs(notification_id="notif-1", team_id=1, issue_id="issue-1", event="$error_tracking_issue_created")- assert issue_url(inputs).endswith("/project/1/error_tracking/issue-1")- assert issue_url(dataclasses.replace(inputs, fingerprint="")).endswith("/project/1/error_tracking/issue-1")+ assert issue_url(inputs).endswith("/project/1/error-tracking/issue-1")+ assert issue_url(dataclasses.replace(inputs, fingerprint="")).endswith("/project/1/error-tracking/issue-1")with_fingerprint = dataclasses.replace(inputs, fingerprint="a/b c")- assert issue_url(with_fingerprint).endswith("/project/1/error_tracking/fingerprint/a%2Fb%20c")+ assert issue_url(with_fingerprint).endswith("/project/1/error-tracking/fingerprint/a%2Fb%20c")class TestSlackThreadDelivery(AlertTestMixin):diff --git a/products/error_tracking/backend/weekly_digest.py b/products/error_tracking/backend/weekly_digest.pyindex d747421dd06d..5ce6dfc3bbf0 100644--- a/products/error_tracking/backend/weekly_digest.py+++ b/products/error_tracking/backend/weekly_digest.py@@ -472,7 +472,7 @@ def build_team_digest_data("crash_free": get_crash_free_sessions(team, filter_test_accounts),"source_maps_recommendation": get_source_maps_recommendation_for_team(team),"test_account_filters_skipped": not filter_test_accounts,- "error_tracking_url": f"{settings.SITE_URL}/project/{team.pk}/error_tracking?utm_source=error_tracking_weekly_digest",+ "error_tracking_url": f"{settings.SITE_URL}/project/{team.pk}/error-tracking?utm_source=error_tracking_weekly_digest","ingestion_failures_url": build_ingestion_failures_url(team.pk),}diff --git a/products/error_tracking/frontend/components/ErrorTrackingIssueList/ErrorTrackingIssueList.test.tsx b/products/error_tracking/frontend/components/ErrorTrackingIssueList/ErrorTrackingIssueList.test.tsxindex 9e1a83ac6d2a..bab58a6c7f8e 100644--- a/products/error_tracking/frontend/components/ErrorTrackingIssueList/ErrorTrackingIssueList.test.tsx+++ b/products/error_tracking/frontend/components/ErrorTrackingIssueList/ErrorTrackingIssueList.test.tsx@@ -61,7 +61,7 @@ describe('ErrorTrackingIssueListRow', () => {expect(screen.getAllByRole('link')).toHaveLength(1)const link = screen.getByText(/TypeError: undefined is not a function/i).closest('a')expect(link?.getAttribute('href')).toMatch(- /\/error_tracking\/issue-abc\?timestamp=2026-05-26T08%3A00%3A00\.000Z$/+ /\/error-tracking\/issue-abc\?timestamp=2026-05-26T08%3A00%3A00\.000Z$/)})diff --git a/products/error_tracking/frontend/components/FingerprintPreview/manageFingerprintsLogic.ts b/products/error_tracking/frontend/components/FingerprintPreview/manageFingerprintsLogic.tsindex 262e75804c91..a09ca991a9b6 100644--- a/products/error_tracking/frontend/components/FingerprintPreview/manageFingerprintsLogic.ts+++ b/products/error_tracking/frontend/components/FingerprintPreview/manageFingerprintsLogic.ts@@ -377,7 +377,7 @@ export const manageFingerprintsLogic = kea<manageFingerprintsLogicType>([}),urlToAction(({ actions, props }) => ({- '/error_tracking/:id': ({ id }, searchParams) => {+ '/error-tracking/:id': ({ id }, searchParams) => {if (id === props.issueId && searchParams.manageFingerprints === 'true') {actions.openManage()}diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene.tsxindex e141dd91cc2b..19a5f57c23ea 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene.tsx@@ -15,7 +15,7 @@ import {export const scene: SceneExport<ErrorTrackingFingerprintSceneLogicProps> = {component: ErrorTrackingFingerprintScene,logic: errorTrackingFingerprintSceneLogic,- // `_` is the wildcard capture from the `/error_tracking/fingerprint/*` route.+ // `_` is the wildcard capture from the `/error-tracking/fingerprint/*` route.paramsToProps: ({ params: { _: wildcard }, searchParams: { timestamp } }) => ({// Decode from the raw pathname, not the router's already-decodeURI'd capture — decoding that// a second time crashes on a literal `%` and mangles `%XX` fingerprints.diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintRoute.test.ts b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintRoute.test.tsindex 337e418428c1..f2b2ceee33ec 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintRoute.test.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintRoute.test.ts@@ -13,7 +13,7 @@ describe('error tracking fingerprint route', () => {// `decodeURI(pathname)` — which unescapes `%5B` to `[`, `%20` to a space, and every non-ASCII// escape to its character. Those fall outside the router's global `segmentValueCharset`, so// while this route used a named `:fingerprint` segment an alert link such as- // /error_tracking/fingerprint/Error%3A%20%5BcashFlowDrilldown%5D matched no route at all and the+ // /error-tracking/fingerprint/Error%3A%20%5BcashFlowDrilldown%5D matched no route at all and the// app rendered its 404 scene instead of resolving the fingerprint. A wildcard skips the charset.let matched = false@@ -40,7 +40,7 @@ describe('error tracking fingerprint route', () => {['TypeError: {"a":1} <html> `tpl` (500)'],['fp-1'],])('routes an alert link for the fingerprint %s', (fingerprint) => {- router.actions.push(`/error_tracking/fingerprint/${encodeURIComponent(fingerprint)}`)+ router.actions.push(`/error-tracking/fingerprint/${encodeURIComponent(fingerprint)}`)expect(matched).toBe(true)})diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.test.ts b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.test.tsindex a4224b23f8a2..b8ea962516b5 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.test.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.test.ts@@ -38,14 +38,14 @@ describe('errorTrackingFingerprintSceneLogic', () => {await expectLogic(logic).toDispatchActions(['resolveFingerprintSuccess'])- expect(router.values.location.pathname).toMatch(/\/error_tracking\/issue-1$/)+ expect(router.values.location.pathname).toMatch(/\/error-tracking\/issue-1$/)expect(router.values.searchParams).toEqual(expectedParams)})it('extracts the raw, still-encoded fingerprint segment from the pathname', () => {- expect(rawFingerprintPathSegment('/project/1/error_tracking/fingerprint/%24uper%2Fstrange%23fp')).toEqual(+ expect(rawFingerprintPathSegment('/project/1/error-tracking/fingerprint/%24uper%2Fstrange%23fp')).toEqual('%24uper%2Fstrange%23fp')- expect(rawFingerprintPathSegment('/project/1/error_tracking/issue-id')).toBeNull()+ expect(rawFingerprintPathSegment('/project/1/error-tracking/issue-id')).toBeNull()})})diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.tsindex df079b07656c..e40fba557b0d 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.ts@@ -37,7 +37,7 @@ export function decodeFingerprintSegment(rawSegment: string): string {// location.pathname percent-encoded — only the transient match inside urlToAction runs decodeURI —// so this is the single source that survives one clean decodeURIComponent.export function rawFingerprintPathSegment(pathname: string): string | null {- const match = pathname.match(/\/error_tracking\/fingerprint\/([^/]+)\/?$/)+ const match = pathname.match(/\/error-tracking\/fingerprint\/([^/]+)\/?$/)return match ? match[1] : null}diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.ts b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.tsindex a5b3154ac473..2537e32c77b9 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.test.ts@@ -54,7 +54,7 @@ describe('errorTrackingIssueSceneLogic', () => {jest.restoreAllMocks()})- // The catch-all `/error_tracking/:id` route can capture a legacy settings slug. Without the+ // The catch-all `/error-tracking/:id` route can capture a legacy settings slug. Without the// guard the scene fired every loader against a non-UUID id, spraying "issue_id must be a valid// UUID" toasts over a blank page.it.each(['symbol_sets', 'symbol-sets', 'settings', 'configuration'])(diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.tsindex fe1a2621fbd6..69263886955b 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic.ts@@ -978,7 +978,7 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicType],issueId: [(_, p) => [p.id], (id: string) => id],- // A real issue id is a UUID. The catch-all `/error_tracking/:id` route can capture a+ // A real issue id is a UUID. The catch-all `/error-tracking/:id` route can capture a// legacy settings slug (e.g. `symbol_sets`), so the scene checks this to show a// not-found state instead of firing loaders that fail with "issue_id must be a valid UUID".issueIdValid: [(_, p) => [p.id], (id: string) => isUUIDLike(id)],@@ -1126,7 +1126,7 @@ export const errorTrackingIssueSceneLogic = kea<errorTrackingIssueSceneLogicTypeurlToAction(({ actions, values }) => {return {- '**/error_tracking/:id': (_, params) => {+ '**/error-tracking/:id': (_, params) => {if (values.listDateRange == null) {actions.setListDateRange(params.dateRange ?? DEFAULT_DATE_RANGE)}diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/errorTrackingSceneLogic.test.ts b/products/error_tracking/frontend/scenes/ErrorTrackingScene/errorTrackingSceneLogic.test.tsnew file mode 100644index 000000000000..63d7d321c5ee--- /dev/null+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/errorTrackingSceneLogic.test.ts@@ -0,0 +1,17 @@+import { router } from 'kea-router'++import { initKeaTests } from '~/test/init'++import { errorTrackingSceneLogic } from './errorTrackingSceneLogic'++describe('errorTrackingSceneLogic', () => {+ it('restores the active tab from the canonical error-tracking url', () => {+ initKeaTests()+ const logic = errorTrackingSceneLogic()+ logic.mount()++ router.actions.push('/error-tracking', { activeTab: 'configuration' })++ expect(logic.values.activeTab).toBe('configuration')+ })+})diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingScene/errorTrackingSceneLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingScene/errorTrackingSceneLogic.tsindex 7696554e687c..ce26017f19e8 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingScene/errorTrackingSceneLogic.ts+++ b/products/error_tracking/frontend/scenes/ErrorTrackingScene/errorTrackingSceneLogic.ts@@ -267,7 +267,7 @@ export const errorTrackingSceneLogic = kea<errorTrackingSceneLogicType>([urlToAction(({ actions, values }) => {return {- '**/error_tracking': (_, params, hashParams) => {+ '**/error-tracking': (_, params, hashParams) => {if (params.activeTab && !equal(params.activeTab, values.activeTab)) {actions.setActiveTab(params.activeTab)}diff --git a/products/error_tracking/frontend/settingsRedirects.ts b/products/error_tracking/frontend/settingsRedirects.tsindex 5558f4acf493..7cbe43387ce8 100644--- a/products/error_tracking/frontend/settingsRedirects.ts+++ b/products/error_tracking/frontend/settingsRedirects.ts@@ -28,7 +28,7 @@ export function resolveSettingSlug(slug: string | undefined): string | undefinedexport function configurationRedirect(settingId: string | undefined, searchParams: Params, hashParams: Params): string {const { tab, ...restSearchParams } = searchParamsreturn combineUrl(- '/error_tracking',+ '/error-tracking',{ ...restSearchParams, activeTab: 'configuration' },{ ...hashParams, ...(settingId ? { selectedSetting: settingId } : {}) }).urldiff --git a/products/error_tracking/manifest.test.tsx b/products/error_tracking/manifest.test.tsxindex 2da6f288452c..68d20b8f515b 100644--- a/products/error_tracking/manifest.test.tsx+++ b/products/error_tracking/manifest.test.tsx@@ -1,3 +1,7 @@+import { router } from 'kea-router'++import { initKeaTests } from '~/test/init'+import { manifest } from './manifest'type RedirectFn = (params: Record<string, string>, searchParams: Record<string, string>, hashParams: object) => string@@ -5,21 +9,54 @@ type RedirectFn = (params: Record<string, string>, searchParams: Record<string,describe('error tracking routes', () => {it('registers alert routes before the generic issue route', () => {const routes = Object.keys(manifest.routes)- const alertsIdRoute = '/error_tracking/alerts/:id'- const alertsNewRoute = '/error_tracking/alerts/new/:templateId'- const genericIdRoute = '/error_tracking/:id'+ const alertsIdRoute = '/error-tracking/alerts/:id'+ const alertsNewRoute = '/error-tracking/alerts/new/:templateId'+ const genericIdRoute = '/error-tracking/:id'expect(routes).toEqual(expect.arrayContaining([alertsIdRoute, alertsNewRoute, genericIdRoute]))expect(routes.indexOf(alertsIdRoute)).toBeLessThan(routes.indexOf(genericIdRoute))expect(routes.indexOf(alertsNewRoute)).toBeLessThan(routes.indexOf(alertsIdRoute))})+ it.each(['configuration', 'settings', 'symbol_sets', 'symbol-sets'])(+ 'registers the legacy /error_tracking/%s redirect before the /error_tracking/:id catch-all',+ (slug) => {+ const redirects = Object.keys(manifest.redirects!)++ expect(redirects.indexOf(`/error_tracking/${slug}`)).toBeGreaterThanOrEqual(0)+ expect(redirects.indexOf(`/error_tracking/${slug}`)).toBeLessThan(redirects.indexOf('/error_tracking/:id'))+ }+ )+it('opens fingerprint management from the legacy fingerprints route', () => {const redirect = manifest.redirects!['/error_tracking/:id/fingerprints'] as RedirectFn- expect(redirect({ id: 'issue-id' }, {}, {})).toBe('/error_tracking/issue-id?manageFingerprints=true')+ expect(redirect({ id: 'issue-id' }, {}, {})).toBe('/error-tracking/issue-id?manageFingerprints=true')})+ it.each([+ ['/errors', {}, '/error-tracking'],+ ['/error_tracking', {}, '/error-tracking'],+ ['/error_tracking/:id', { id: 'issue-id' }, '/error-tracking/issue-id'],+ ['/error_tracking/alerts/:id', { id: 'alert-id' }, '/error-tracking/alerts/alert-id'],+ ['/error_tracking/alerts/new/:templateId', { templateId: 'tpl' }, '/error-tracking/alerts/new/tpl'],+ ])('redirects %s to the canonical error-tracking path and keeps query and hash', (path, params, expectedPath) => {+ const redirect = manifest.redirects![path] as RedirectFn++ expect(redirect(params, { dateRange: '7d' }, { foo: 'bar' })).toBe(`${expectedPath}?dateRange=7d#foo=bar`)+ })++ it.each(['Error%3A%20x', '100%25', 'a%252Fb'])(+ 'rebuilds the legacy fingerprint link from the raw path for %s',+ (raw) => {+ initKeaTests()+ router.actions.push(`/error_tracking/fingerprint/${raw}`)+ const redirect = manifest.redirects!['/error_tracking/fingerprint/*'] as RedirectFn++ expect(redirect({ _: decodeURI(raw) }, {}, {})).toBe(`/error-tracking/fingerprint/${raw}`)+ }+ )+// Legacy settings links (from docs, bookmarks, and old onboarding) used to dead-end on a blank// issue page. Each must now land on its tab in the configuration panel.it.each([@@ -34,6 +71,7 @@ describe('error tracking routes', () => {const redirect = manifest.redirects![path] as RedirectFnconst url = redirect(params as Record<string, string>, searchParams as Record<string, string>, {})+ expect(url).toMatch(/^\/error-tracking\?/)expect(url).toContain('activeTab=configuration')expect(url).toContain(`selectedSetting=${settingId}`)})diff --git a/products/error_tracking/manifest.tsx b/products/error_tracking/manifest.tsxindex cdb734805a94..fad23e35216f 100644--- a/products/error_tracking/manifest.tsx+++ b/products/error_tracking/manifest.tsx@@ -1,4 +1,4 @@-import { combineUrl } from 'kea-router'+import { combineUrl, router } from 'kea-router'import { FEATURE_FLAGS } from 'lib/constants'import { urls } from 'scenes/urls'@@ -32,21 +32,16 @@ export const manifest: ProductManifest = {},},routes: {- // nosemgrep: frontend-route-hyphen -- shipped app URL, existing links point here- '/error_tracking': ['ErrorTracking', 'errorTracking'],- // nosemgrep: frontend-route-hyphen -- shipped app URL, existing links point here- '/error_tracking/fingerprint/*': ['ErrorTrackingFingerprint', 'errorTrackingFingerprint'],- // nosemgrep: frontend-route-hyphen -- shipped app URL, existing links point here- '/error_tracking/alerts/new/:templateId': ['HogFunction', 'errorTrackingAlertNew'],- // nosemgrep: frontend-route-hyphen -- shipped app URL, existing links point here- '/error_tracking/alerts/:id': ['HogFunction', 'errorTrackingAlert'],- // nosemgrep: frontend-route-hyphen -- shipped app URL, existing links point here- '/error_tracking/:id': ['ErrorTrackingIssue', 'errorTrackingIssue'],+ '/error-tracking': ['ErrorTracking', 'errorTracking'],+ '/error-tracking/fingerprint/*': ['ErrorTrackingFingerprint', 'errorTrackingFingerprint'],+ '/error-tracking/alerts/new/:templateId': ['HogFunction', 'errorTrackingAlertNew'],+ '/error-tracking/alerts/:id': ['HogFunction', 'errorTrackingAlert'],+ '/error-tracking/:id': ['ErrorTrackingIssue', 'errorTrackingIssue'],},redirects: {// The fingerprints scene became a modal on the issue page. Keep old links working.'/error_tracking/:id/fingerprints': (params) =>- combineUrl(`/error_tracking/${params.id}`, { manageFingerprints: 'true' }).url,+ combineUrl(`/error-tracking/${params.id}`, { manageFingerprints: 'true' }).url,'/error_tracking/configuration': (_params, searchParams, hashParams) =>configurationRedirect(resolveSettingSlug(searchParams.tab), searchParams, hashParams),'/error_tracking/configuration/:tab': (params, searchParams, hashParams) =>@@ -59,6 +54,21 @@ export const manifest: ProductManifest = {configurationRedirect('error-tracking-symbol-sets', searchParams, hashParams),'/error_tracking/symbol-sets': (_params, searchParams, hashParams) =>configurationRedirect('error-tracking-symbol-sets', searchParams, hashParams),+ '/errors': (_params, searchParams, hashParams) => combineUrl('/error-tracking', searchParams, hashParams).url,+ '/error_tracking': (_params, searchParams, hashParams) =>+ combineUrl('/error-tracking', searchParams, hashParams).url,+ // kea-router decodeURI()s the wildcard capture, so rebuild the fingerprint from the raw pathname.+ '/error_tracking/fingerprint/*': (_params, searchParams, hashParams) => {+ const [, rawFingerprint = ''] =+ router.values.location.pathname.match(/\/error_tracking\/fingerprint\/([^/]+)\/?$/) ?? []+ return combineUrl(`/error-tracking/fingerprint/${rawFingerprint}`, searchParams, hashParams).url+ },+ '/error_tracking/alerts/new/:templateId': ({ templateId }, searchParams, hashParams) =>+ combineUrl(`/error-tracking/alerts/new/${templateId}`, searchParams, hashParams).url,+ '/error_tracking/alerts/:id': ({ id }, searchParams, hashParams) =>+ combineUrl(`/error-tracking/alerts/${id}`, searchParams, hashParams).url,+ '/error_tracking/:id': ({ id }, searchParams, hashParams) =>+ combineUrl(`/error-tracking/${id}`, searchParams, hashParams).url,},// Boot-time approximation of errorTrackingSetupLogic: a $exception definition// existing means issues exist. The in-scene check stays the source of truth@@ -68,9 +78,9 @@ export const manifest: ProductManifest = {hasDataEvents: ['$exception'],},urls: {- errorTracking: (params = {}): string => combineUrl('/error_tracking', params).url,+ errorTracking: (params = {}): string => combineUrl('/error-tracking', params).url,errorTrackingConfiguration: (params = {}): string =>- combineUrl('/error_tracking', { ...params, activeTab: 'configuration' }).url,+ combineUrl('/error-tracking', { ...params, activeTab: 'configuration' }).url,errorTrackingIssue: (id: string,params: {@@ -83,15 +93,15 @@ export const manifest: ProductManifest = {utm_campaign?: stringutm_medium?: string} = {}- ): string => combineUrl(`/error_tracking/${id}`, params).url,+ ): string => combineUrl(`/error-tracking/${id}`, params).url,errorTrackingFingerprint: (fingerprint: string,params: {timestamp?: string} = {}- ): string => combineUrl(`/error_tracking/fingerprint/${encodeURIComponent(fingerprint)}`, params).url,- errorTrackingAlert: (id: string): string => `/error_tracking/alerts/${id}`,- errorTrackingAlertNew: (templateId: string): string => `/error_tracking/alerts/new/${templateId}`,+ ): string => combineUrl(`/error-tracking/fingerprint/${encodeURIComponent(fingerprint)}`, params).url,+ errorTrackingAlert: (id: string): string => `/error-tracking/alerts/${id}`,+ errorTrackingAlertNew: (templateId: string): string => `/error-tracking/alerts/new/${templateId}`,},fileSystemTypes: {},treeItemsNew: [],diff --git a/products/error_tracking/mcp/apps/ErrorTracking.stories.tsx b/products/error_tracking/mcp/apps/ErrorTracking.stories.tsxindex 82724e87a52b..f24984a590d7 100644--- a/products/error_tracking/mcp/apps/ErrorTracking.stories.tsx+++ b/products/error_tracking/mcp/apps/ErrorTracking.stories.tsx@@ -118,7 +118,7 @@ export const WithBreakdown: Story = {const sampleListData: ErrorIssueListData = {count: 4,results: [activeIssue, resolvedIssue, issueWithLinks, suppressedIssue],- _posthogUrl: 'https://us.posthog.com/project/1/error_tracking',+ _posthogUrl: 'https://us.posthog.com/project/1/error-tracking',}export const List: Story = {@@ -272,7 +272,7 @@ const sampleErrorDetails: ErrorDetailsData = {},},],- _posthogUrl: 'https://us.posthog.com/project/1/error_tracking/issue-1',+ _posthogUrl: 'https://us.posthog.com/project/1/error-tracking/issue-1',}export const ErrorDetails: Story = {diff --git a/products/error_tracking/mcp/error_tracking_alerts.yaml b/products/error_tracking/mcp/error_tracking_alerts.yamlindex af726df8f3a5..9b03fa82c91c 100644--- a/products/error_tracking/mcp/error_tracking_alerts.yaml+++ b/products/error_tracking/mcp/error_tracking_alerts.yaml@@ -4,7 +4,7 @@# To keep an operation off on purpose, set enabled: false and give a disabled_reason.category: Error tracking alertsfeature: error_tracking-url_prefix: /error_tracking+url_prefix: /error-trackingui_apps: {}tools:error-tracking-alerts-create:@@ -97,7 +97,7 @@ tools:{"type": "divider"},{"type": "actions", "elements": [{"type": "button", "text": {"type": "plain_text", "text": "View Issue"},- "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"}+ "url": "{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"}]}]}}diff --git a/products/error_tracking/mcp/tools.yaml b/products/error_tracking/mcp/tools.yamlindex c75a76dd8cd2..f56ad1061dd1 100644--- a/products/error_tracking/mcp/tools.yaml+++ b/products/error_tracking/mcp/tools.yaml@@ -4,7 +4,7 @@# To keep an operation off on purpose, set enabled: false and give a disabled_reason.category: Error trackingfeature: error_tracking-url_prefix: /error_tracking+url_prefix: /error-trackingui_apps:error-details:type: detaildiff --git a/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.md b/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.mdindex 5ff3f2304392..84600210f107 100644--- a/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.md+++ b/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.md@@ -55,7 +55,7 @@ time against the live event — leave the curly-braced segments as-is.{"type": "button","text": { "type": "plain_text", "text": "View Issue" },- "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"+ "url": "{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"}]}@@ -87,7 +87,7 @@ time against the live event — leave the curly-braced segments as-is.```json"inputs": {"content": {- "value": "**🔴 {event.properties.name} created:** {event.properties.description}\n\n[View in PostHog]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)"+ "value": "**🔴 {event.properties.name} created:** {event.properties.description}\n\n[View in PostHog]({project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)"}}```@@ -97,7 +97,7 @@ time against the live event — leave the curly-braced segments as-is.```json"inputs": {"text": {- "value": "**🔴 {event.properties.name} created:** {event.properties.description} (View in [PostHog]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"+ "value": "**🔴 {event.properties.name} created:** {event.properties.description} (View in [PostHog]({project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"}}```@@ -112,7 +112,7 @@ all three:"title": { "value": "{event.properties.name}" },"description": { "value": "{event.properties.description}" },"posthog_issue_id": { "value": "{event.distinct_id}" },- "posthog_issue_url": { "value": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=linear" }+ "posthog_issue_url": { "value": "{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=linear" }}```@@ -145,7 +145,7 @@ Same as `_created`, with the header swapped to `🔄` and the section text to "I{"type": "button","text": { "type": "plain_text", "text": "View Issue" },- "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"+ "url": "{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"}]}@@ -185,7 +185,7 @@ Use the same shape as `_created`, swap `🔴` → `🔄` and "created" → "reop{"type": "button","text": { "type": "plain_text", "text": "View Issue" },- "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"+ "url": "{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"}]}@@ -203,7 +203,7 @@ end up with `0x over baseline` in the message, which is wrong.````json"inputs": {"content": {- "value": "**📈 Issue spiking**\n\n```\n{event.properties.name}: {substring(event.properties.description, 1, 1000)}\n```\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'})\n**Project:** [{project.name}]({project.url})\n**Alert:** [{source.name}]({source.url})\n\n[View issue]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)"+ "value": "**📈 Issue spiking**\n\n```\n{event.properties.name}: {substring(event.properties.description, 1, 1000)}\n```\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'})\n**Project:** [{project.name}]({project.url})\n**Alert:** [{source.name}]({source.url})\n\n[View issue]({project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)"}}````@@ -213,7 +213,7 @@ end up with `0x over baseline` in the message, which is wrong.```json"inputs": {"text": {- "value": "**📈 Issue spiking: {event.properties.name}:** {event.properties.description}\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'}) (View in [PostHog]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"+ "value": "**📈 Issue spiking: {event.properties.name}:** {event.properties.description}\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'}) (View in [PostHog]({project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"}}```diff --git a/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.md b/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.mdindex 6d8aac789d9e..41b8bf5f226b 100644--- a/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.md+++ b/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.md@@ -109,7 +109,7 @@ To alert only on unassigned issues, add the property filter `assignee` **is not**Deep-link shape** for the issue page (used by the canonical block templates):```text-{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack+{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack```The link goes through the fingerprint redirect page, which resolves the fingerprint to whatever issue it currently belongs to — so links keep working after issues are merged.diff --git a/products/error_tracking/skills/investigating-error-issue/SKILL.md b/products/error_tracking/skills/investigating-error-issue/SKILL.mdindex 97e0500a6f53..4f06ffdaee70 100644--- a/products/error_tracking/skills/investigating-error-issue/SKILL.md+++ b/products/error_tracking/skills/investigating-error-issue/SKILL.md@@ -3,7 +3,7 @@ name: investigating-error-issuedescription: >Investigates a single PostHog error tracking issue end-to-end. Use whenthe user provides an issue ID or pastes an issue URL- (`/error_tracking/<id>`) and wants to understand the error — who it+ (`/error-tracking/<id>`) and wants to understand the error — who itaffects, what triggers it, when it started, whether it correlates witha release, browser, OS, or feature flag, and what the next step shouldbe. Pulls aggregated metrics, sample exception events, segmentdiff --git a/products/error_tracking/skills/linking-errors-to-traces/SKILL.md b/products/error_tracking/skills/linking-errors-to-traces/SKILL.mdindex 2b9bf843a044..92201c24c6fd 100644--- a/products/error_tracking/skills/linking-errors-to-traces/SKILL.md+++ b/products/error_tracking/skills/linking-errors-to-traces/SKILL.md@@ -49,7 +49,7 @@ you checked. Do not claim that an event never existed based on a bounded search.service lookup and exact log filter. Include every severity, including`info`. A trace can have logs even when no span was retained.-Use `posthog:generate-app-url` with `/error_tracking/{id}` when the issue ID is known.+Use `posthog:generate-app-url` with `/error-tracking/{id}` when the issue ID is known.Do not build PostHog links by hand.## Report the resultdiff --git a/products/error_tracking/skills/triaging-error-issues/SKILL.md b/products/error_tracking/skills/triaging-error-issues/SKILL.mdindex 8f602d1b2309..4836006ca1bc 100644--- a/products/error_tracking/skills/triaging-error-issues/SKILL.md+++ b/products/error_tracking/skills/triaging-error-issues/SKILL.md@@ -153,8 +153,8 @@ For each, suggest one of: **investigate** (`investigating-error-issue`), **assigmay have already curated the most actionable issues so you avoid re-deriving them.- Provide each row's `_posthogUrl` (returned on every issue row) so the user can jumpstraight to the issue page if they want to drill down themselves. If you build the- link yourself, use the full `/project/<project_id>/error_tracking/<id>` path, never- a bare `/error_tracking/<id>`.+ link yourself, use the full `/project/<project_id>/error-tracking/<id>` path, never+ a bare `/error-tracking/<id>`.## Related skillsdiff --git a/products/signals/backend/pr_origin.py b/products/signals/backend/pr_origin.pyindex f0626668eefd..e73290244ab2 100644--- a/products/signals/backend/pr_origin.py+++ b/products/signals/backend/pr_origin.py@@ -69,7 +69,7 @@ class EntityPage:_ENTITY_PAGES: dict[str, EntityPage] = {- SignalSourceProduct.ERROR_TRACKING: EntityPage(link_label="issue", path="/error_tracking/{id}"),+ SignalSourceProduct.ERROR_TRACKING: EntityPage(link_label="issue", path="/error-tracking/{id}"),SignalSourceProduct.SESSION_REPLAY: EntityPage(link_label="recording", path="/replay/{id}"),SignalSourceProduct.CONVERSATIONS: EntityPage(link_label="ticket", path="/support/tickets/{id}"),}diff --git a/products/signals/backend/test/test_pr_origin.py b/products/signals/backend/test/test_pr_origin.pyindex adc3cfe66252..d46a939bdd21 100644--- a/products/signals/backend/test/test_pr_origin.py+++ b/products/signals/backend/test/test_pr_origin.py@@ -192,7 +192,7 @@ class TestPullRequestOrigin(BaseTest):).render()project = f"/project/{self.team.id}"- assert f"[issue 1](http://localhost:8010{project}/error_tracking/01a0a561-54a4)" in section+ assert f"[issue 1](http://localhost:8010{project}/error-tracking/01a0a561-54a4)" in sectionassert "settings?x=1" not in sectionassert "run:1:finding:2" not in sectionassert "- Scout: `signals-scout-error-tracking`" in sectiondiff --git a/products/signals/frontend/inbox/utils/signalLinks.test.ts b/products/signals/frontend/inbox/utils/signalLinks.test.tsindex 7685e49887a3..62a618d53c8e 100644--- a/products/signals/frontend/inbox/utils/signalLinks.test.ts+++ b/products/signals/frontend/inbox/utils/signalLinks.test.ts@@ -10,7 +10,7 @@ describe('signalLinks', () => {source_id: 'issue-1',extra: { url: 'https://example.com/elsewhere' },},- expected: { to: '/error_tracking/issue-1', label: 'View issue', external: false },+ expected: { to: '/error-tracking/issue-1', label: 'View issue', external: false },},{name: 'links a support ticket from a conversations source id',diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 2b135fad36d6..63ea6c2257ab 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -4505,7 +4505,7 @@"feature_flag": "engineering-analytics"},"error-tracking-alerts-create": {- "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking` and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link), `event.properties.fingerprint`, and `event.properties.exception_timestamp`. `created`/`reopened` additionally expose `event.properties.status` and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.",+ "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking` and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link), `event.properties.fingerprint`, and `event.properties.exception_timestamp`. `created`/`reopened` additionally expose `event.properties.status` and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.","category": "Error tracking alerts","feature": "error_tracking","summary": "Create error tracking alert",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex d8bc2130f4b8..a8671305e855 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -4534,7 +4534,7 @@"feature_flag": "engineering-analytics"},"error-tracking-alerts-create": {- "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking` and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link), `event.properties.fingerprint`, and `event.properties.exception_timestamp`. `created`/`reopened` additionally expose `event.properties.status` and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.",+ "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error-tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking` and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link), `event.properties.fingerprint`, and `event.properties.exception_timestamp`. `created`/`reopened` additionally expose `event.properties.status` and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.","category": "Error tracking alerts","feature": "error_tracking","summary": "Create error tracking alert",diff --git a/services/mcp/src/tools/generated/error_tracking.ts b/services/mcp/src/tools/generated/error_tracking.tsindex 6d7228cb84cc..a06434bf76e0 100644--- a/services/mcp/src/tools/generated/error_tracking.ts+++ b/services/mcp/src/tools/generated/error_tracking.ts@@ -357,7 +357,7 @@ const errorTrackingIssuesPartialUpdate = (): ToolBase<path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/issues/${encodeURIComponent(String(params.id))}/`,body,})- return await withPostHogUrl(context, result, `/error_tracking/${result.id}`)+ return await withPostHogUrl(context, result, `/error-tracking/${result.id}`)},})@@ -707,7 +707,7 @@ const errorTrackingSymbolSetsList = (): ToolBase<])),} as typeof result- return await withPostHogUrl(context, filtered, '/error_tracking')+ return await withPostHogUrl(context, filtered, '/error-tracking')},})@@ -779,7 +779,7 @@ const queryErrorTrackingIssue = (): ToolBase<path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/query/issue/`,body,})- return await withPostHogUrl(context, result, `/error_tracking/${params.issueId}`)+ return await withPostHogUrl(context, result, `/error-tracking/${params.issueId}`)},})@@ -833,7 +833,7 @@ const queryErrorTrackingIssueEvents = (): ToolBase<path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/query/issue_events/`,body,})- return await withPostHogUrl(context, result, `/error_tracking/${params.issueId}`)+ return await withPostHogUrl(context, result, `/error-tracking/${params.issueId}`)},})@@ -936,11 +936,11 @@ const queryErrorTrackingIssuesList = (): ToolBase<...filtered,results: await Promise.all((filtered.results ?? []).map((item) =>- withPostHogUrl(context, item, `/error_tracking/${item.id}`)+ withPostHogUrl(context, item, `/error-tracking/${item.id}`))),},- '/error_tracking'+ '/error-tracking'),['id',diff --git a/services/mcp/src/tools/generated/error_tracking_alerts.ts b/services/mcp/src/tools/generated/error_tracking_alerts.tsindex 1f998e618091..a40b876d3e9d 100644--- a/services/mcp/src/tools/generated/error_tracking_alerts.ts+++ b/services/mcp/src/tools/generated/error_tracking_alerts.ts@@ -144,7 +144,7 @@ const errorTrackingAlertsList = (): ToolBase<])),} as typeof result- return await withPostHogUrl(context, filtered, '/error_tracking')+ return await withPostHogUrl(context, filtered, '/error-tracking')},})diff --git a/services/mcp/src/tools/links/app-url-manifest.json b/services/mcp/src/tools/links/app-url-manifest.jsonindex 0717841fcd81..df6afc14cd69 100644--- a/services/mcp/src/tools/links/app-url-manifest.json+++ b/services/mcp/src/tools/links/app-url-manifest.json@@ -730,32 +730,32 @@"scope": "project"},"errorTracking": {- "template": "/error_tracking",+ "template": "/error-tracking","params": [],"scope": "project"},"errorTrackingAlert": {- "template": "/error_tracking/alerts/{id}",+ "template": "/error-tracking/alerts/{id}","params": ["id"],"scope": "project"},"errorTrackingAlertNew": {- "template": "/error_tracking/alerts/new/{templateId}",+ "template": "/error-tracking/alerts/new/{templateId}","params": ["templateId"],"scope": "project"},"errorTrackingConfiguration": {- "template": "/error_tracking",+ "template": "/error-tracking","params": [],"scope": "project"},"errorTrackingFingerprint": {- "template": "/error_tracking/fingerprint/{fingerprint}",+ "template": "/error-tracking/fingerprint/{fingerprint}","params": ["fingerprint"],"scope": "project"},"errorTrackingIssue": {- "template": "/error_tracking/{id}",+ "template": "/error-tracking/{id}","params": ["id"],"scope": "project"},diff --git a/services/mcp/src/tools/links/generate-app-url.ts b/services/mcp/src/tools/links/generate-app-url.tsindex 3e6843e80c58..83e30362ff65 100644--- a/services/mcp/src/tools/links/generate-app-url.ts+++ b/services/mcp/src/tools/links/generate-app-url.ts@@ -25,6 +25,10 @@ const URL_CATALOG = [...SCOPE_BY_TEMPLATE.keys()].sort().join('\n')const PLACEHOLDER = /\{([^}]+)\}/g+function toCanonicalTemplate(template: string): string {+ return template.replace(/^\/error_tracking(?=\/|$)/, '/error-tracking')+}+function placeholdersOf(template: string): string[] {return [...template.matchAll(PLACEHOLDER)].map((match) => match[1]!)}@@ -63,14 +67,15 @@ export const generateAppUrlHandler: ToolBase<typeof schema, AppUrlResult>['handlcontext: Context,params: Params): Promise<AppUrlResult> => {- const scope = SCOPE_BY_TEMPLATE.get(params.url)+ const template = toCanonicalTemplate(params.url)+ const scope = SCOPE_BY_TEMPLATE.get(template)if (!scope) {throw new Error(`Unknown url "${params.url}". Pick a path template from this tool's catalog (run \`info generate-app-url\`).`)}- const required = placeholdersOf(params.url)+ const required = placeholdersOf(template)const provided = Object.keys(params.params)const missing = required.filter((name) => !(name in params.params))const unexpected = provided.filter((name) => !required.includes(name))@@ -96,7 +101,7 @@ export const generateAppUrlHandler: ToolBase<typeof schema, AppUrlResult>['handlbaseUrl = context.api.getProjectBaseUrl('@current')}- return { url: `${baseUrl}${substitute(params.url, params.params)}` }+ return { url: `${baseUrl}${substitute(template, params.params)}` }}export default (): ToolBase<typeof schema, AppUrlResult> => ({diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.jsonindex 545d9ff26427..570462fe50f9 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json@@ -13,7 +13,7 @@"type": "object"},"url": {- "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/scorers\n/ai-evals/evaluations/scorers/{scorerId}\n/ai-evals/evaluations/scorers/{scorerId}/offline\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/autoresearch\n/autoresearch/new\n/autoresearch/{id}\n/bi\n/bi/new\n/bi/{insightShortId}\n/billing/authorization_status\n/broadcasts\n/broadcasts/new\n/broadcasts/{id}\n/business-knowledge\n/business-knowledge/playground\n/business-knowledge/settings\n/business-knowledge/{id}\n/canvas\n/canvases\n/canvases/new\n/canvases/{id}\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/loop/{loopId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/cross-project-dashboards\n/cross-project-dashboards/{id}\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/by-external-id/{externalId}\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-destinations\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/debug/precompute\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors\n/engineering-analytics/authors/{handle}\n/engineering-analytics/deploys\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}/ci-explorer\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/tests\n/engineering-analytics/workflows\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/etl\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/files\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/games/shipit\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scout-trials\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-registry\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/metrics/dashboard-review\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/widgets/{widgetId}\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/platform-alerts\n/platform-alerts/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/spaces\n/spaces/new\n/spaces/{id}\n/spaces/{id}/canvases\n/spaces/{id}/new\n/spaces/{id}/settings\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/terminal\n/themes/custom-css\n/toolbar\n/tools\n/tracing\n/tracing/retention-rules/new\n/tracing/retention-rules/{id}\n/unsubscribe\n/verify_email\n/views\n/views/new\n/visual-review\n/visual-review/repos/{repoOwner}/{repoName}/flakiness\n/visual-review/repos/{repoOwner}/{repoName}/runs\n/visual-review/repos/{repoOwner}/{repoName}/runs/{runId}\n/visual-review/repos/{repoOwner}/{repoName}/snapshots\n/visual-review/repos/{repoOwner}/{repoName}/{runType}/snapshots/{identifier}\n/visual-review/runs/{runId}\n/visual-review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/content-autopilot\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard/runs\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",+ "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/scorers\n/ai-evals/evaluations/scorers/{scorerId}\n/ai-evals/evaluations/scorers/{scorerId}/offline\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/autoresearch\n/autoresearch/new\n/autoresearch/{id}\n/bi\n/bi/new\n/bi/{insightShortId}\n/billing/authorization_status\n/broadcasts\n/broadcasts/new\n/broadcasts/{id}\n/business-knowledge\n/business-knowledge/playground\n/business-knowledge/settings\n/business-knowledge/{id}\n/canvas\n/canvases\n/canvases/new\n/canvases/{id}\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/loop/{loopId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/cross-project-dashboards\n/cross-project-dashboards/{id}\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/by-external-id/{externalId}\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-destinations\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/debug/precompute\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors\n/engineering-analytics/authors/{handle}\n/engineering-analytics/deploys\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}/ci-explorer\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/tests\n/engineering-analytics/workflows\n/error-tracking\n/error-tracking/alerts/new/{templateId}\n/error-tracking/alerts/{id}\n/error-tracking/fingerprint/{fingerprint}\n/error-tracking/{id}\n/etl\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/files\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/games/shipit\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scout-trials\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-registry\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/metrics/dashboard-review\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/widgets/{widgetId}\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/platform-alerts\n/platform-alerts/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/spaces\n/spaces/new\n/spaces/{id}\n/spaces/{id}/canvases\n/spaces/{id}/new\n/spaces/{id}/settings\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/terminal\n/themes/custom-css\n/toolbar\n/tools\n/tracing\n/tracing/retention-rules/new\n/tracing/retention-rules/{id}\n/unsubscribe\n/verify_email\n/views\n/views/new\n/visual-review\n/visual-review/repos/{repoOwner}/{repoName}/flakiness\n/visual-review/repos/{repoOwner}/{repoName}/runs\n/visual-review/repos/{repoOwner}/{repoName}/runs/{runId}\n/visual-review/repos/{repoOwner}/{repoName}/snapshots\n/visual-review/repos/{repoOwner}/{repoName}/{runType}/snapshots/{identifier}\n/visual-review/runs/{runId}\n/visual-review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/content-autopilot\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard/runs\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}","type": "string"}},diff --git a/services/mcp/tests/unit/generate-app-url.test.ts b/services/mcp/tests/unit/generate-app-url.test.tsindex 0879b3cdda7a..84ac09e4150d 100644--- a/services/mcp/tests/unit/generate-app-url.test.ts+++ b/services/mcp/tests/unit/generate-app-url.test.ts@@ -51,6 +51,16 @@ describe('generate-app-url', () => {expect(result.url).toBe('https://us.posthog.com/project/354703/events/evt_1/2026-06-01T15%3A48%3A00Z')})+ it.each([+ ['/error_tracking/{id}', { id: 'issue-1' }, '/error-tracking/issue-1'],+ ['/error-tracking/{id}', { id: 'issue-1' }, '/error-tracking/issue-1'],+ ['/error_tracking/fingerprint/{fingerprint}', { fingerprint: 'fp' }, '/error-tracking/fingerprint/fp'],+ ['/error_tracking', {}, '/error-tracking'],+ ])('builds the canonical error tracking link for the template %s', async (url, params, path) => {+ const result = await generateAppUrlHandler(ctx, { url, params })+ expect(result.url).toBe(`https://us.posthog.com/project/354703${path}`)+ })+it('uses the bare host (no project prefix) for global-scope pages', async () => {const result = await generateAppUrlHandler(ctx, { url: '/instance/status', params: {} })expect(result.url).toBe('https://us.posthog.com/instance/status')