Merge pull request #4025 from codesome/route-prefix

Fixed pathPrefix for web pages
This commit is contained in:
Björn Rabenstein 2018-03-29 16:22:54 +02:00 committed by GitHub
commit 61accb51ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ func tmplFuncs(consolesPath string, opts *Options) template_text.FuncMap {
return time.Since(t) / time.Millisecond * time.Millisecond return time.Since(t) / time.Millisecond * time.Millisecond
}, },
"consolesPath": func() string { return consolesPath }, "consolesPath": func() string { return consolesPath },
"pathPrefix": func() string { return opts.ExternalURL.Path }, "pathPrefix": func() string { return opts.RoutePrefix },
"buildVersion": func() string { return opts.Version.Revision }, "buildVersion": func() string { return opts.Version.Revision },
"stripLabels": func(lset map[string]string, labels ...string) map[string]string { "stripLabels": func(lset map[string]string, labels ...string) map[string]string {
for _, ln := range labels { for _, ln := range labels {