diff options
author | Joram Wilander <jwawilander@gmail.com> | 2018-06-22 22:09:31 -0400 |
---|---|---|
committer | Jesse Hallam <jesse.hallam@gmail.com> | 2018-06-22 22:09:31 -0400 |
commit | 1c194e5fbdd30ed4387a07cc8a62037f2a18abdd (patch) | |
tree | a44218ad472b021e7788e11dbc6f1a0dbae29691 /web | |
parent | 454522cc30eb1db685bf4a1b9f408ac46a22ff63 (diff) | |
download | chat-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.go | 2 |
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) |