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")