mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge pull request #883 from brian-brazil/fix-menu
web: Fix regression in .Path
This commit is contained in:
commit
87b9813be4
|
@ -24,6 +24,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -244,7 +245,7 @@ func (h *Handler) consoles(w http.ResponseWriter, r *http.Request) {
|
|||
}{
|
||||
RawParams: rawParams,
|
||||
Params: params,
|
||||
Path: name,
|
||||
Path: strings.TrimLeft(name, "/"),
|
||||
}
|
||||
|
||||
tmpl := template.NewTemplateExpander(string(text), "__console_"+name, data, clientmodel.Now(), h.queryEngine, h.options.ExternalURL.Path)
|
||||
|
|
Loading…
Reference in a new issue