all repos — elgit @ e1533eec6ff51eeb29c9486b0269ee8c32624e6c

fork of legit: web frontend for git, written in go

fix: redirect links from pkg.go.dev

Alan Pearce
commit

e1533eec6ff51eeb29c9486b0269ee8c32624e6c

parent

ce58b9378f1749b5d51b9e74a8024e08f4abad0b

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M routes/handler.goroutes/handler.go
@@ -68,7 +68,7 @@ mux.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) {
d.Write404(w) } - mux.RedirectTrailingSlash = false + mux.RedirectTrailingSlash = true mux.GET("/", d.Index) mux.GET("/static/:file", d.ServeStatic)