mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +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,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user