From 485aa3f4588098539a43dc9b8ff3350bd5cccf71 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 4 May 2017 12:29:22 +1000 Subject: [PATCH] get faq page working --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 9a996d07..dbd3091d 100644 --- a/main.go +++ b/main.go @@ -174,7 +174,7 @@ func safe(s string) template.URL { } func faqHandler(w http.ResponseWriter, r *http.Request) { - err = templates.ExecuteTemplate(w, "FAQ.html", &b) + err := templates.ExecuteTemplate(w, "FAQ.html", "") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } @@ -224,7 +224,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) { func main() { dbHandle = getDBHandle() - router := mux.NewRouter() + router := mux.NewRouter().StrictSlash(true) cssHandler := http.FileServer(http.Dir("./css/")) jsHandler := http.FileServer(http.Dir("./js/"))