From 68ecbdd59569ae794a4f872f1f9968cffdc234b3 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 24 May 2017 10:42:37 -0600 Subject: [PATCH] Redirect to /page/view on /page/ request --- handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index e2476db..89a4473 100755 --- a/handlers.go +++ b/handlers.go @@ -59,7 +59,8 @@ func handlePageRequest(c *gin.Context) { page := c.Param("page") command := c.Param("command") if len(command) < 2 { - command = "/ " + c.Redirect(302, "/"+page+"/view") + return } // Serve static content from memory if page == "static" {