diff --git a/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml b/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml index 69e416d90b..d6ecc9b553 100644 --- a/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml +++ b/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml @@ -306,7 +306,6 @@
-
diff --git a/BTCPayServer/wwwroot/crowdfund/app.js b/BTCPayServer/wwwroot/crowdfund/app.js index f25efdf8a9..d0391ec502 100644 --- a/BTCPayServer/wwwroot/crowdfund/app.js +++ b/BTCPayServer/wwwroot/crowdfund/app.js @@ -41,9 +41,8 @@ document.addEventListener("DOMContentLoaded",function (ev) { if (!this.active || this.loading){ return; } - - var formUrl = e.target["FormUrl"].value; - if (formUrl != '') { + const formUrl = this.$root.srvModel.formUrl; + if (formUrl) { location.href = formUrl + "?amount=" + this.amount + "&choiceKey=" + this.perk.id; return; } else {