diff --git a/page_index.go b/page_index.go index 06e9ca889327cb3c4487b49aae4914c55d79121a..a2052fddfec801e1564bee2f6701aed0d165372b 100644 --- a/page_index.go +++ b/page_index.go @@ -21,13 +21,7 @@ func removeFileExtensions(path string) string { func pageIndex(ctx PageContext) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.Path == "/" { - user := parseUser(r) - - if err := formatTemplate(w, "index.html", IndexData{ - user, - }); err != nil { - panic(err) - } + http.Redirect(w, r, "/me/images", http.StatusFound) } else if r.URL.Path == "/favicon.ico" { w.Header().Set("Vary", "Accept-Encoding") w.Header().Set("Cache-Control", "public, max-age=31536000")