mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05: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
@@ -71,6 +71,7 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r.Get("/dashboard/script/*", reqSignedIn, hs.Index)
|
||||
r.Get("/dashboard-solo/snapshot/*", hs.Index)
|
||||
r.Get("/d-solo/:uid/:slug", reqSignedIn, hs.Index)
|
||||
r.Get("/d-solo/:uid", reqSignedIn, hs.Index)
|
||||
r.Get("/dashboard-solo/db/:slug", reqSignedIn, redirectFromLegacyDashboardSoloURL, hs.Index)
|
||||
r.Get("/dashboard-solo/script/*", reqSignedIn, hs.Index)
|
||||
r.Get("/import/dashboard", reqSignedIn, hs.Index)
|
||||
|
||||
@@ -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