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:
1 parent
5b1bc8141a
commit
de7dc9252f
3 files changed
+9
-6
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user