From 58716de0735ae74800bda42b074331b23415b143 Mon Sep 17 00:00:00 2001 From: Kristina Date: Thu, 22 Dec 2022 09:23:30 -0600 Subject: [PATCH] Fix Explore URL generator (#60653) --- .../unified/components/rule-viewer/RuleViewerVisualization.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/components/rule-viewer/RuleViewerVisualization.tsx b/public/app/features/alerting/unified/components/rule-viewer/RuleViewerVisualization.tsx index 45b5719eeba..175635331c7 100644 --- a/public/app/features/alerting/unified/components/rule-viewer/RuleViewerVisualization.tsx +++ b/public/app/features/alerting/unified/components/rule-viewer/RuleViewerVisualization.tsx @@ -146,7 +146,7 @@ function createExploreLink(settings: DataSourceInstanceSettings, model: AlertDat return urlUtil.renderUrl(`${config.appSubUrl}/explore`, { left: JSON.stringify({ datasource: name, - queries: [{ refId: 'A', datasource: name, expr: queryParams }], + queries: [{ refId: 'A', ...queryParams }], range: { from: 'now-1h', to: 'now' }, }), });