summaryrefslogtreecommitdiffstats
path: root/web/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/handlers.go')
-rw-r--r--web/handlers.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/handlers.go b/web/handlers.go
index c089f460b..71a43bc48 100644
--- a/web/handlers.go
+++ b/web/handlers.go
@@ -68,7 +68,9 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
- c.SetSiteURLHeader(app.GetProtocol(r) + "://" + r.Host)
+ subpath, _ := utils.GetSubpathFromConfig(c.App.Config())
+ siteURLHeader := app.GetProtocol(r) + "://" + r.Host + subpath
+ c.SetSiteURLHeader(siteURLHeader)
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v.%v.%v", model.CurrentVersion, model.BuildNumber, c.App.ClientConfigHash(), c.App.License() != nil))