diff --git a/BTCPayServer/Controllers/GreenField/InvoiceController.cs b/BTCPayServer/Controllers/GreenField/InvoiceController.cs index 1e08ac139..db3fd6acf 100644 --- a/BTCPayServer/Controllers/GreenField/InvoiceController.cs +++ b/BTCPayServer/Controllers/GreenField/InvoiceController.cs @@ -215,7 +215,7 @@ namespace BTCPayServer.Controllers.GreenField try { var invoice = await _invoiceController.CreateInvoiceCoreRaw(request, store, - Request.GetAbsoluteUri("")); + Request.GetAbsoluteRoot()); return Ok(ToModel(invoice)); } catch (BitpayHttpException e) diff --git a/BTCPayServer/Controllers/PaymentRequestController.cs b/BTCPayServer/Controllers/PaymentRequestController.cs index 42ded5bef..d600a0900 100644 --- a/BTCPayServer/Controllers/PaymentRequestController.cs +++ b/BTCPayServer/Controllers/PaymentRequestController.cs @@ -275,7 +275,7 @@ namespace BTCPayServer.Controllers }; var additionalTags = new List {PaymentRequestRepository.GetInternalTag(id)}; - var newInvoice = await _InvoiceController.CreateInvoiceCoreRaw(invoiceRequest,store, "/",additionalTags, cancellationToken); + var newInvoice = await _InvoiceController.CreateInvoiceCoreRaw(invoiceRequest,store, Request.GetAbsoluteRoot(), additionalTags, cancellationToken); if (redirectToInvoice) { diff --git a/BTCPayServer/Plugins/Shopify/ShopifyController.cs b/BTCPayServer/Plugins/Shopify/ShopifyController.cs index 0e93d2be6..08a3d2df6 100644 --- a/BTCPayServer/Plugins/Shopify/ShopifyController.cs +++ b/BTCPayServer/Plugins/Shopify/ShopifyController.cs @@ -193,7 +193,7 @@ namespace BTCPayServer.Plugins.Shopify Currency = order.Currency, Metadata = new JObject {["orderId"] = invoiceOrderId} }, store, - Request.GetAbsoluteUri(""), new List() {invoiceOrderId}); + Request.GetAbsoluteRoot(), new List() {invoiceOrderId}); return Ok(new {invoiceId = invoice.Id, status = invoice.Status.ToString().ToLowerInvariant()}); }