Redirect to /page/view on /page/ request

This commit is contained in:
Zack Scholl 2017-05-24 10:42:37 -06:00
parent ceaef5a1ae
commit 68ecbdd595
1 changed files with 2 additions and 1 deletions

View File

@ -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" {