From 9cd2598e8ceab833a399db36475a108b5a2a63c3 Mon Sep 17 00:00:00 2001 From: jackyin Date: Tue, 19 Nov 2024 00:57:51 +0800 Subject: [PATCH] Explore Metrics: Duplicate subpath (#96287) * explore metrics subpath * optimize --- public/app/features/trails/MetricScene.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/features/trails/MetricScene.tsx b/public/app/features/trails/MetricScene.tsx index fe9161312b2..1f868a8ab53 100644 --- a/public/app/features/trails/MetricScene.tsx +++ b/public/app/features/trails/MetricScene.tsx @@ -164,11 +164,9 @@ export class MetricActionBar extends SceneObjectBase { public openExploreLink = async () => { reportExploreMetrics('selected_metric_action_clicked', { action: 'open_in_explore' }); this.getLinkToExplore().then((link) => { - // We need to ensure we prefix with the appSubUrl for environments that don't host grafana at the root. - const url = `${config.appSubUrl}${link}`; // We use window.open instead of a Link or because we want to compute the explore link when clicking, // if we precompute it we have to keep track of a lot of dependencies - window.open(url, '_blank'); + window.open(link, '_blank'); }); };