diff options
Diffstat (limited to 'app/config.go')
-rw-r--r-- | app/config.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/config.go b/app/config.go index a9cd84d90..35a0c9a3f 100644 --- a/app/config.go +++ b/app/config.go @@ -14,6 +14,7 @@ import ( "fmt" "net/url" "runtime/debug" + "strings" l4g "github.com/alecthomas/log4go" @@ -54,7 +55,7 @@ func (a *App) LoadConfig(configFile string) *model.AppError { a.config.Store(cfg) - utils.SetSiteURL(*cfg.ServiceSettings.SiteURL) + a.siteURL = strings.TrimRight(*cfg.ServiceSettings.SiteURL, "/") a.InvokeConfigListeners(old, cfg) return nil @@ -264,3 +265,7 @@ func (a *App) GetCookieDomain() string { } return "" } + +func (a *App) GetSiteURL() string { + return a.siteURL +} |