summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-06-22 22:09:31 -0400
committerJesse Hallam <jesse.hallam@gmail.com>2018-06-22 22:09:31 -0400
commit1c194e5fbdd30ed4387a07cc8a62037f2a18abdd (patch)
treea44218ad472b021e7788e11dbc6f1a0dbae29691 /web
parent454522cc30eb1db685bf4a1b9f408ac46a22ff63 (diff)
downloadchat-1c194e5fbdd30ed4387a07cc8a62037f2a18abdd.tar.gz
chat-1c194e5fbdd30ed4387a07cc8a62037f2a18abdd.tar.bz2
chat-1c194e5fbdd30ed4387a07cc8a62037f2a18abdd.zip
Fix plugins serving after subpath changes (#8982)
Diffstat (limited to 'web')
-rw-r--r--web/static.go2
1 files changed, 1 insertions, 1 deletions
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)