From 1458a28eee97d458ebe85f493278f1b17c7e7e09 Mon Sep 17 00:00:00 2001 From: Juan Cabanas Date: Tue, 18 Nov 2025 15:43:25 -0300 Subject: [PATCH] DashboardLibrary: Fix 404 not found error when browsing the page (#114094) * 404 fix * any enabled added --- pkg/api/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/api/api.go b/pkg/api/api.go index bcfc188770d..6a838206ba9 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -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)