Fix: The redirect url of crowdfund invoices wasn't set correctly if rootpath is used (Fix #2992)

This commit is contained in:
nicolas.dorier
2021-10-25 14:55:35 +09:00
parent 2c45f803e4
commit fb1fcbe0b9

View File

@@ -377,7 +377,7 @@ namespace BTCPayServer.Controllers
ExtendedNotifications = true,
SupportedTransactionCurrencies = paymentMethods,
RedirectURL = request.RedirectUrl ??
new Uri(new Uri(new Uri(HttpContext.Request.GetAbsoluteRoot()), _BtcPayServerOptions.RootPath), $"apps/{appId}/crowdfund").ToString()
HttpContext.Request.GetAbsoluteUri($"/apps/{appId}/crowdfund")
}, store, HttpContext.Request.GetAbsoluteRoot(),
new List<string> { AppService.GetAppInternalTag(appId) },
cancellationToken: cancellationToken);