From 43475d79eca8b4ae392374e09e58b16397d80c78 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sat, 9 Dec 2023 21:12:37 +0100 Subject: Fix fulfillment Url --- pkg/rest/gnsregistrar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rest/gnsregistrar.go b/pkg/rest/gnsregistrar.go index acf4940..519cff0 100644 --- a/pkg/rest/gnsregistrar.go +++ b/pkg/rest/gnsregistrar.go @@ -345,7 +345,7 @@ func (t *Registrar) buyPage(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "/name/"+vars["label"] + "?error=Registration failed: Pending buy order", http.StatusSeeOther) return } - orderID, newOrderErr := t.Merchant.AddNewOrder(*t.RegistrationCost, "GNS registrar name registration", "/name/" + vars["label"]) + orderID, newOrderErr := t.Merchant.AddNewOrder(*t.RegistrationCost, "GNS registrar name registration", t.BaseUrl + "/name/" + vars["label"]) if newOrderErr != nil { fmt.Println(newOrderErr) http.Redirect(w, r, "/name/"+vars["label"] + "?error=Registration failed: Unable to create order", http.StatusSeeOther) -- cgit v1.2.3