Refactoring: Introduce IUrlHelper.ActionAbsolute (#6513)

This commit is contained in:
Nicolas Dorier
2024-12-21 00:16:04 +09:00
committed by GitHub
parent 44dc6499cd
commit 8acf1c2d62
8 changed files with 16 additions and 16 deletions

View File

@@ -404,9 +404,8 @@ namespace BTCPayServer.Controllers
var bip21 = network.GenerateBIP21(address?.ToString(), null);
if (allowedPayjoin)
{
var endpoint = Request.GetAbsoluteUriNoPathBase(
Url.Action(nameof(PayJoinEndpointController.Submit), "PayJoinEndpoint",
new { cryptoCode = walletId.CryptoCode })).ToString();
var endpoint = Url.ActionAbsolute(Request, nameof(PayJoinEndpointController.Submit), "PayJoinEndpoint",
new { cryptoCode = walletId.CryptoCode }).ToString();
bip21.QueryParams.Add(PayjoinClient.BIP21EndpointKey, endpoint);
}