From 4a916984e65a474c2e81aab258fafcf3b3b28715 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sat, 4 Nov 2017 12:49:02 -0600 Subject: [PATCH] Need to handle /page/ and /page the same Fixes #88 --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index fd698fc..477ddde 100755 --- a/handlers.go +++ b/handlers.go @@ -36,7 +36,7 @@ func serve(host, port, crt_path, key_path string, TLS bool, cssFile string, defa }) router.GET("/:page", func(c *gin.Context) { page := c.Param("page") - c.Redirect(302, "/"+page+"/edit") + c.Redirect(302, "/"+page+"/") }) router.GET("/:page/*command", handlePageRequest) router.POST("/update", handlePageUpdate)