From bd7ed84a39c1da29f4fc0f085aa919ed4c4dcc8c Mon Sep 17 00:00:00 2001 From: Julien Pivotto <291750+roidelapluie@users.noreply.github.com> Date: Fri, 2 Jan 2026 17:52:54 +0100 Subject: [PATCH] Remove obsolete /classic/static route The /classic/static/* route was added to serve vendor JavaScript and CSS files (jQuery, Bootstrap, etc.) for console templates. These vendor assets were removed in #14807 due to security vulnerabilities, making this route obsolete as it now serves an empty directory. The console feature remains functional via --web.console.templates and --web.console.libraries flags. Users who need JavaScript/CSS libraries in their custom console templates must provide these assets within the directory specified by --web.console.libraries. Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com> --- web/web.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/web/web.go b/web/web.go index 2d216502c1..e787cbb4ac 100644 --- a/web/web.go +++ b/web/web.go @@ -455,13 +455,6 @@ func New(logger *slog.Logger, o *Options) *Handler { reactAssetsRoot = "/static/react-app" } - // The console library examples at 'console_libraries/prom.lib' still depend on old asset files being served under `classic`. - router.Get("/classic/static/*filepath", func(w http.ResponseWriter, r *http.Request) { - r.URL.Path = path.Join("/static", route.Param(r.Context(), "filepath")) - fs := server.StaticFileServer(ui.Assets) - fs.ServeHTTP(w, r) - }) - router.Get("/version", h.version) router.Get("/metrics", promhttp.Handler().ServeHTTP)