From bbf23e7becc1b5843208027ba66c867b280e46fd Mon Sep 17 00:00:00 2001 From: Chris Siebenmann Date: Wed, 11 Sep 2019 12:48:52 -0400 Subject: [PATCH] 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 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.25.1