From 19b4bab554e31ed56caf0bb855a1c05a0274bc08 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 7 Nov 2020 01:28:32 +0100 Subject: [PATCH] Changed endpoints and db queries, chart now shows suggested mins and maxes --- climate-server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/climate-server.go b/climate-server.go index 73a4ec5..27d8bab 100644 --- a/climate-server.go +++ b/climate-server.go @@ -50,7 +50,7 @@ func startServer() { func showCharts(w http.ResponseWriter, r *http.Request) { if countStr := mux.Vars(r)["mins"]; countStr != "" { if _, err := strconv.ParseInt(countStr, 10, 0); err != nil { - http.Redirect(w, r, ROOT_URL + "/", 303) + http.Redirect(w, r, "/" + ROOT_URL + "/", 303) } } http.ServeFile(w, r, "charts.html")