From 1c194e5fbdd30ed4387a07cc8a62037f2a18abdd Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 22 Jun 2018 22:09:31 -0400 Subject: Fix plugins serving after subpath changes (#8982) --- web/static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static.go b/web/static.go index 08da9e95e..4c27d6325 100644 --- a/web/static.go +++ b/web/static.go @@ -27,7 +27,7 @@ func (w *Web) InitStatic() { subpath, _ := utils.GetSubpathFromConfig(w.App.Config()) staticHandler := staticHandler(http.StripPrefix(path.Join(subpath, "static"), http.FileServer(http.Dir(staticDir)))) - pluginHandler := pluginHandler(w.App.Config, http.StripPrefix(path.Join(subpath, "plugins"), http.FileServer(http.Dir(*w.App.Config().PluginSettings.ClientDirectory)))) + pluginHandler := pluginHandler(w.App.Config, http.StripPrefix(path.Join(subpath, "static", "plugins"), http.FileServer(http.Dir(*w.App.Config().PluginSettings.ClientDirectory)))) if *w.App.Config().ServiceSettings.WebserverMode == "gzip" { staticHandler = gziphandler.GzipHandler(staticHandler) -- cgit v1.2.3-1-g7c22