From: Chris Siebenmann Date: Wed, 11 Sep 2019 16:48:52 +0000 (-0400) Subject: Change the front page links to probe logs into relative links (#520) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bbf23e7becc1b5843208027ba66c867b280e46fd;p=blackbox_exporter.git Change the front page links to probe logs into relative links (#520) The front page contains a table of links to logs from the most recent probes. These links were accidentally changed to absolute links in 252a878, in a form that doesn't work when using --web.external-url. Rather than prefixing these with the external URL (if set), we return them to being relative links, as they are meant to be (per issue #519). Fixes #519 Signed-off-by: Chris Siebenmann --- diff --git a/main.go b/main.go index 3d95971..1499b2e 100644 --- a/main.go +++ b/main.go @@ -324,7 +324,7 @@ func run() int { if !r.success { success = "Failure" } - fmt.Fprintf(w, "%s%s%sLogs", + fmt.Fprintf(w, "%s%s%sLogs", html.EscapeString(r.moduleName), html.EscapeString(r.target), success, r.id) }