From 504f3e17238058ceebeb0af506ef3838ec8e40f8 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 25 Jan 2017 11:11:26 -0500 Subject: Fix siteURL not being set correctly (#5189) --- api/context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/context.go b/api/context.go index edee8bb21..e998138a6 100644 --- a/api/context.go +++ b/api/context.go @@ -144,6 +144,8 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { if utils.GetSiteURL() == "" { protocol := GetProtocol(r) c.SetSiteURL(protocol + "://" + r.Host) + } else { + c.SetSiteURL(utils.GetSiteURL()) } w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId) -- cgit v1.2.3-1-g7c22