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))