Panel inspect: Fix inspect keyboard shortcut when grafana served from subpath (#99366)

* Panel inspect: Fix inspect keyboard shortcut when grafana served from a subpath

* Add e2e test
This commit is contained in:
Dominik Prokop
2025-01-22 13:25:10 +01:00
committed by GitHub
parent 5b8e6f8fa8
commit 51b4ac50aa
2 changed files with 9 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ export function setupKeyboardShortcuts(scene: DashboardScene) {
keybindings.addBinding({
key: 'i',
onTrigger: withFocusedPanel(scene, async (vizPanel: VizPanel) => {
locationService.push(getInspectUrl(vizPanel));
locationService.push(locationUtil.stripBaseFromUrl(getInspectUrl(vizPanel)));
}),
});