mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix: The redirect url of crowdfund invoices wasn't set correctly if rootpath is used (Fix #2992)
This commit is contained in:
@@ -377,7 +377,7 @@ namespace BTCPayServer.Controllers
|
|||||||
ExtendedNotifications = true,
|
ExtendedNotifications = true,
|
||||||
SupportedTransactionCurrencies = paymentMethods,
|
SupportedTransactionCurrencies = paymentMethods,
|
||||||
RedirectURL = request.RedirectUrl ??
|
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(),
|
}, store, HttpContext.Request.GetAbsoluteRoot(),
|
||||||
new List<string> { AppService.GetAppInternalTag(appId) },
|
new List<string> { AppService.GetAppInternalTag(appId) },
|
||||||
cancellationToken: cancellationToken);
|
cancellationToken: cancellationToken);
|
||||||
|
|||||||
Reference in New Issue
Block a user