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

@@ -171,9 +171,8 @@ namespace BTCPayServer.Controllers.Greenfield
var allowedPayjoin = derivationScheme.IsHotWallet && Store.GetStoreBlob().PayJoinEnabled;
if (allowedPayjoin)
{
var endpoint = Request.GetAbsoluteUriNoPathBase(
Url.Action(nameof(PayJoinEndpointController.Submit), "PayJoinEndpoint",
new { network.CryptoCode })).ToString();
var endpoint = Url.ActionAbsolute(Request, nameof(PayJoinEndpointController.Submit), "PayJoinEndpoint",
new { network.CryptoCode }).ToString();
bip21.QueryParams.Add(PayjoinClient.BIP21EndpointKey, endpoint);
}