diff --git a/web/web.go b/web/web.go index 2a6c4f9636..e2642d9f52 100644 --- a/web/web.go +++ b/web/web.go @@ -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)