diff --git a/frontend/app/services/MetricService.ts b/frontend/app/services/MetricService.ts index 7a27bd597..ed302929c 100644 --- a/frontend/app/services/MetricService.ts +++ b/frontend/app/services/MetricService.ts @@ -100,11 +100,7 @@ export default class MetricService { ) { return Promise.resolve({}); } - let metricId = metric.metricId; - if (metricId.endsWith('/chart')) { - metricId = metricId.split('/')[0]; - } - const path = isSaved ? `/dashboards/${metric.dashboardId}/cards/${metricId}` : '/cards/try'; + const path = isSaved ? `/dashboards/${metric.dashboardId}/cards/${metric.metricId}/chart` : '/cards/try'; if (metric.metricType === USER_PATH) { data.density = 5; data.metricOf = 'sessionCount';