From 6e94142d5e3ebb0a9e921d837bc4a3ef82ab2b62 Mon Sep 17 00:00:00 2001 From: JBWatenbergScality <75977494+JBWatenbergScality@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:24:11 +0100 Subject: [PATCH] ZKUI-408 fix: Grafana URL is relative from the root of the URL --- src/react/next-architecture/ui/ConfigProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/next-architecture/ui/ConfigProvider.tsx b/src/react/next-architecture/ui/ConfigProvider.tsx index 0de6f71d0..68439323b 100644 --- a/src/react/next-architecture/ui/ConfigProvider.tsx +++ b/src/react/next-architecture/ui/ConfigProvider.tsx @@ -30,7 +30,7 @@ export function useGrafanaURL() { const instances = useDeployedMetalk8sInstances(); if (instances.length) { - const baseUrl = instances[0].url; + const baseUrl = new URL(instances[0].url).origin; const runTimeConfig = retrieveConfiguration({ configType: 'run', name: instances[0].name,