fix: enforce trailing slash for server url

This commit is contained in:
Benedikt Kulmann
2025-12-09 10:14:08 +01:00
parent 8e2fab3c9d
commit 614d916978

View File

@@ -136,6 +136,9 @@ func (p Web) getPayload() (payload []byte, err error) {
p.config.Web.Config.Apps = make([]string, 0)
}
// ensure that the server url has a trailing slash
p.config.Web.Config.Server = strings.TrimRight(p.config.Web.Config.Server, "/") + "/"
return json.Marshal(p.config.Web.Config)
}