From eba205fcac698cc86436ec1ef91dc9d279f1da43 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 24 Jul 2014 16:57:56 +0100 Subject: [PATCH] Expose path used to get to console to console. Change-Id: I72386a2d4e53863da302ecc5c7e44d6c310197e0 --- web/consoles.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/consoles.go b/web/consoles.go index 4e9c71a4b..bbada6978 100644 --- a/web/consoles.go +++ b/web/consoles.go @@ -61,9 +61,11 @@ func (h *ConsolesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { data := struct { RawParams url.Values Params map[string]string + Path string }{ RawParams: rawParams, Params: params, + Path: r.URL.Path, } template := templates.NewTemplateExpander(string(text), "__console_"+r.URL.Path, data, clientmodel.Now(), h.Storage)