From 9eb8ec9fa9eaa35dfc197449feaebcb640b10b6c Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 12 Jun 2023 15:58:38 +0100 Subject: [PATCH] Command Palette: Links opened in a new tab now route correctly when Grafana is served under a subpath (#69845) don't strip base from url since we're not using locationSrv.push anymore --- .../app/features/commandPalette/actions/dashboardActions.ts | 5 ++--- public/app/features/commandPalette/actions/staticActions.ts | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/public/app/features/commandPalette/actions/dashboardActions.ts b/public/app/features/commandPalette/actions/dashboardActions.ts index 44d6ff4ebf6..be10a89d11c 100644 --- a/public/app/features/commandPalette/actions/dashboardActions.ts +++ b/public/app/features/commandPalette/actions/dashboardActions.ts @@ -1,7 +1,6 @@ import debounce from 'debounce-promise'; import { useEffect, useRef, useState } from 'react'; -import { locationUtil } from '@grafana/data'; import { config } from '@grafana/runtime'; import { t } from 'app/core/internationalization'; import { contextSrv } from 'app/core/services/context_srv'; @@ -43,7 +42,7 @@ export async function getRecentDashboardActions(): Promise 0 && !isCreateAction ? idForNavItem(parents[parents.length - 1]) : undefined, priority: priority,