DashboardLibrary: Fix 404 not found error when browsing the page (#114094)

* 404 fix

* any enabled added
This commit is contained in:
Juan Cabanas
2025-11-18 15:43:25 -03:00
committed by GitHub
parent 92ac33736b
commit 1458a28eee
+3
View File
@@ -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)