DashboardLibrary: Fix 404 not found error when browsing the page (#114094)
* 404 fix * any enabled added
This commit is contained in:
@@ -164,6 +164,9 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r.Get("/d/:uid", reqSignedIn, redirectFromLegacyPanelEditURL, hs.Index)
|
||||
r.Get("/dashboard/script/*", reqSignedIn, hs.Index)
|
||||
r.Get("/dashboard/new", reqSignedIn, hs.Index)
|
||||
if featuremgmt.AnyEnabled(hs.Features, featuremgmt.FlagDashboardLibrary, featuremgmt.FlagSuggestedDashboards, featuremgmt.FlagDashboardTemplates) {
|
||||
r.Get("/dashboard/template", reqSignedIn, hs.Index)
|
||||
}
|
||||
r.Get("/dashboard-solo/snapshot/*", hs.Index)
|
||||
r.Get("/dashboard/provisioning/*", reqSignedIn, hs.Index)
|
||||
r.Get("/d-solo/:uid/:slug", reqSignedIn, hs.Index)
|
||||
|
||||
Reference in New Issue
Block a user