commit 295a6eb24c49fdef8c2b0142b5a0855650c171ca
parent 86720503ed335c39b4d5a87d2189e1ebbaf5acb4
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Sat, 9 Dec 2023 18:00:29 +0100
more redirect fixes
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/rest/gnsregistrar.go b/pkg/rest/gnsregistrar.go
@@ -464,6 +464,7 @@ func (t *Registrar) namePage(w http.ResponseWriter, r *http.Request) {
// FIXME redirect back if label empty
resp, err := http.Get(t.GnunetUrl + "/namestore/" + t.RootZoneName + "/" + vars["label"] + "?include_maintenance=yes")
if err != nil {
+ http.Redirect(w, r, "/" + "?error=Failed to get zone contents.", http.StatusSeeOther)
fmt.Printf("Failed to get zone contents")
return
}