Use /group/name/ as the main page for the group.

We used to omit the slash, which users found confusing.
This commit is contained in:
Juliusz Chroboczek committed 2021-10-26 19:36:05 +02:00
1 parent 5b1bc8141a
commit de7dc9252f
3 files changed
+9 -6

No files matched your search

+3 -2
View File
@@ -283,8 +283,9 @@ func groupHandler(w http.ResponseWriter, r *http.Request) {
return
}
if r.URL.Path != "/group/"+name {
http.Redirect(w, r, "/group/"+name, http.StatusPermanentRedirect)
if r.URL.Path != "/group/"+name+"/" {
http.Redirect(w, r, "/group/"+name+"/",
http.StatusPermanentRedirect)
return
}