: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
feat(mcp-analytics): redirect base path to dashboard (#62881)
Paul D'Ambra153d6a268fd2
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex c8864cd8656a..31a44ba1ca57 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -420,6 +420,8 @@ export const productRedirects: Record<combineUrl('/logs/drop-rules/new', searchParams, hashParams).url,'/logs/sampling/:id': (params, searchParams, hashParams) =>combineUrl(`/logs/drop-rules/${params.id}`, searchParams, hashParams).url,+ '/mcp-analytics': (_params, searchParams, hashParams) =>+ combineUrl(urls.mcpAnalyticsDashboard(), searchParams, hashParams).url,'/replay-vision/templates': '/replay-vision/new/template','/prompt-management/skills': (_params, searchParams, hashParams) =>combineUrl(urls.skills(), searchParams, hashParams).url,diff --git a/products/mcp_analytics/manifest.tsx b/products/mcp_analytics/manifest.tsxindex 59a54d3abc0e..2a98c49b6b62 100644--- a/products/mcp_analytics/manifest.tsx+++ b/products/mcp_analytics/manifest.tsx@@ -3,6 +3,8 @@** Defines scenes, routes, URLs, and navigation for this product.*/+import { combineUrl } from 'kea-router'+import { FEATURE_FLAGS } from 'lib/constants'import { urls } from 'scenes/urls'@@ -39,7 +41,10 @@ export const manifest: ProductManifest = {'/mcp-analytics/tool-quality/:toolName': ['MCPAnalyticsToolDetail', 'mcpAnalyticsTool'],'/mcp-analytics/intent-clustering': ['MCPAnalytics', 'mcpAnalyticsIntentClustering'],},- redirects: {},+ redirects: {+ '/mcp-analytics': (_params, searchParams, hashParams) =>+ combineUrl(urls.mcpAnalyticsDashboard(), searchParams, hashParams).url,+ },urls: {// Define URL helpers heremcpAnalyticsDashboard: (): string => '/mcp-analytics/dashboard',