refactor(router): add trailing slash to all redirects

This commit is contained in:
Guz
2025-03-25 14:31:35 -03:00
parent 07460aaaca
commit f13313da30

View File

@@ -65,7 +65,7 @@ func (router *router) createProject(w http.ResponseWriter, r *http.Request) {
router.assert.NotZero(p.ID)
http.Redirect(w, r, path.Join(r.URL.Path, p.ID), http.StatusSeeOther)
http.Redirect(w, r, fmt.Sprintf("%s/", path.Join(r.URL.Path, p.ID)), http.StatusSeeOther)
}
func (router *router) getProject(w http.ResponseWriter, r *http.Request) {