Fix global value store URL construction with custom paths
This commit is contained in:
+1
-2
@@ -759,8 +759,7 @@ func initValuestore(opt *options.Options) {
|
||||
}
|
||||
// Web applications
|
||||
for _, w := range strings.Split(opt.HTTPServer.WebappList, ",") {
|
||||
w = strings.TrimSpace(w)
|
||||
webappBaseURLWebapps[w] = webappBaseURL + w
|
||||
webappBaseURLWebapps[w] = fmt.Sprintf("%s/%s", strings.TrimRight(webappBaseURL, "/"), strings.TrimSpace(w))
|
||||
}
|
||||
|
||||
// Webapp related values -- domain, base url (for webapps), ...
|
||||
|
||||
@@ -92,11 +92,11 @@ func pathPrefix(pp ...string) string {
|
||||
|
||||
// will return base URL with domain and prefix path
|
||||
func FullURL(pp ...string) string {
|
||||
return fullUrl(GuessApiHostname())
|
||||
return fullUrl(GuessApiHostname(), pp...)
|
||||
}
|
||||
|
||||
func FullWebappURL(pp ...string) string {
|
||||
return fullUrl(GuessWebappHostname())
|
||||
return fullUrl(GuessWebappHostname(), pp...)
|
||||
}
|
||||
|
||||
// will return base URL with domain and prefix path
|
||||
|
||||
Reference in New Issue
Block a user