Bugfixing path to crypto image

Will need to move all these paths to absolute, rather than relative
This commit is contained in:
rockstardev
2019-05-30 15:15:39 -05:00
committed by Kukks
parent 7b337bde49
commit 5c6643270b
3 changed files with 4 additions and 4 deletions

View File

@@ -210,7 +210,7 @@ namespace BTCPayServer.Controllers
return View(model);
}
//TODO: abstract
//TODO: abstract
private async Task<PaymentModel> GetInvoiceModel(string invoiceId, PaymentMethodId paymentMethodId)
{
var invoice = await _InvoiceRepository.GetInvoice(invoiceId);
@@ -324,7 +324,7 @@ namespace BTCPayServer.Controllers
PaymentMethodName = availableCryptoHandler.GetPaymentMethodName(availableCryptoPaymentMethodId),
IsLightning =
kv.GetId().PaymentType == PaymentTypes.LightningLike,
CryptoImage = Request.GetRelativePathOrAbsolute(availableCryptoHandler.GetCryptoImage(availableCryptoPaymentMethodId)),
CryptoImage = "/" + availableCryptoHandler.GetCryptoImage(availableCryptoPaymentMethodId),
Link = Url.Action(nameof(Checkout),
new
{