From 276bc5a8cba5498e8c253e858e13627cc445d044 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:00:27 +1100 Subject: [PATCH] Fix 404 not returning immediately in asset resolver (#4597) --- internal/api/routes_plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/api/routes_plugin.go b/internal/api/routes_plugin.go index 108ecea03..a085a3682 100644 --- a/internal/api/routes_plugin.go +++ b/internal/api/routes_plugin.go @@ -50,6 +50,7 @@ func (rs pluginRoutes) Assets(w http.ResponseWriter, r *http.Request) { r.URL.Path, dir = p.UI.Assets.GetFilesystemLocation(r.URL.Path) if dir == "" { http.NotFound(w, r) + return } dir = filepath.Join(pluginDir, filepath.FromSlash(dir))