Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

Serve changes at /r/<repo>/changes

8fb7aabf534adf208cd795724b1e3d287dc62f5a · Keenan Nemetz · 3d ago · parent b492b557

Serve changes at /r/<repo>/changes

The metadata tree and the interface say changes; the browser was the last
place spelling the route requests. Rename every method on that subtree and
the URLs the server builds: redirects, activity and search results, the
number alias, code links, templates, and the CLI's page links.

The old route is gone rather than aliased. Nothing has been publicly
released, so there is no bookmark or client to keep working, and a redirect
would leave two spellings of the same page in the code.

Refs #204 (01M6S6685JFG8S64ZFF452217W).

server/web/details_writes.go +3−3

@@ -309,7 +309,7 @@ func (w *Web) UpdateRequestDetails(rw http.ResponseWriter, r *http.Request) {
309 309 w.audit("web.request.edit", ctx.Name, m.Name, id)
310 310 w.checkRequestsAfterEdit(m, id)
311 311 if !htmxRequest(r) {
312 http.Redirect(rw, r, "/r/"+m.Name+"/requests/"+id, http.StatusSeeOther)
312 http.Redirect(rw, r, "/r/"+m.Name+"/changes/"+id, http.StatusSeeOther)
313 313 return
314 314 }
315 315 if updated == nil {
@@ -325,7 +325,7 @@ func (w *Web) UpdateRequestDetails(rw http.ResponseWriter, r *http.Request) {
325 325 w.audit("web.request.edit", ctx.Name, m.Name, id)
326 326 w.checkRequestsAfterEdit(m, id)
327 327 if !htmxRequest(r) {
328 http.Redirect(rw, r, "/r/"+m.Name+"/requests/"+id, http.StatusSeeOther)
328 http.Redirect(rw, r, "/r/"+m.Name+"/changes/"+id, http.StatusSeeOther)
329 329 return
330 330 }
331 331 if updated == nil {
@@ -347,7 +347,7 @@ func (w *Web) UpdateRequestDetails(rw http.ResponseWriter, r *http.Request) {
347 347 }
348 348 w.audit("web.request.edit", ctx.Name, m.Name, id)
349 349 w.checkRequestsAfterEdit(m, id)
350 http.Redirect(rw, r, "/r/"+m.Name+"/requests/"+id, http.StatusSeeOther)
350 http.Redirect(rw, r, "/r/"+m.Name+"/changes/"+id, http.StatusSeeOther)
351 351 }
352 352 }
353 353