From 8d47a5a76f6dc9ead967ac286db634bb8fcd4fbc Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 23 Jun 2024 11:07:33 -0400 Subject: [PATCH] Add frontpage --- go-web-app/gowiki/cmd/gowiki/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go-web-app/gowiki/cmd/gowiki/main.go b/go-web-app/gowiki/cmd/gowiki/main.go index 62c933f..b70d2d4 100644 --- a/go-web-app/gowiki/cmd/gowiki/main.go +++ b/go-web-app/gowiki/cmd/gowiki/main.go @@ -156,7 +156,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request, title string) { } func frontPageHandler(w http.ResponseWriter, r *http.Request) { - http.Redirect(w, r, filepath.Join("/view", "FrontPage"), http.StatusFound) + http.Redirect(w, r, "/viewFrontPage", http.StatusFound) } func main() {