mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Refactoring: Introduce IUrlHelper.ActionAbsolute (#6513)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user