mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Allows the d-solo route to be used without slug (#19640)
Allows the d-solo route to be used with UID and without a slug. Fixes #11617
This commit is contained in:
committed by
Marcus Efraimsson
parent
08f01a6c4f
commit
74557a4c40
@@ -82,6 +82,18 @@ export function setupAngularRoutes($routeProvider: route.IRouteProvider, $locati
|
||||
),
|
||||
},
|
||||
})
|
||||
.when('/d-solo/:uid', {
|
||||
template: '<react-container />',
|
||||
pageClass: 'dashboard-solo',
|
||||
routeInfo: DashboardRouteInfo.Normal,
|
||||
reloadOnSearch: false,
|
||||
resolve: {
|
||||
component: () =>
|
||||
SafeDynamicImport(
|
||||
import(/* webpackChunkName: "SoloPanelPage" */ '../features/dashboard/containers/SoloPanelPage')
|
||||
),
|
||||
},
|
||||
})
|
||||
.when('/dashboard-solo/:type/:slug', {
|
||||
template: '<react-container />',
|
||||
pageClass: 'dashboard-solo',
|
||||
|
||||
Reference in New Issue
Block a user