diff --git a/public/app/features/dashboard-scene/inspect/PanelInspectDrawer.tsx b/public/app/features/dashboard-scene/inspect/PanelInspectDrawer.tsx index 59b38232d74..285ac26b6a0 100644 --- a/public/app/features/dashboard-scene/inspect/PanelInspectDrawer.tsx +++ b/public/app/features/dashboard-scene/inspect/PanelInspectDrawer.tsx @@ -92,6 +92,8 @@ export class PanelInspectDrawer extends SceneObjectBase onClose = () => { const dashboard = getDashboardSceneFor(this); + const meta = dashboard.state.meta; + locationService.push( getDashboardUrl({ uid: dashboard.state.uid, @@ -101,6 +103,7 @@ export class PanelInspectDrawer extends SceneObjectBase inspect: null, inspectTab: null, }, + isHomeDashboard: !meta.url && !meta.slug && !meta.isNew, }) ); };