mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Make sure no trailing slash bug
This commit is contained in:
@@ -775,12 +775,12 @@ namespace BTCPayServer.Controllers
|
|||||||
const string DEFAULT_CURRENCY = "USD";
|
const string DEFAULT_CURRENCY = "USD";
|
||||||
|
|
||||||
[Route("{storeId}/paybutton")]
|
[Route("{storeId}/paybutton")]
|
||||||
public async Task<IActionResult> PayButton()
|
public IActionResult PayButton()
|
||||||
{
|
{
|
||||||
var store = StoreData;
|
var store = StoreData;
|
||||||
var currencyDropdown = supportedCurrencies(store);
|
var currencyDropdown = supportedCurrencies(store);
|
||||||
|
|
||||||
var appUrl = HttpContext.Request.GetAbsoluteRoot();
|
var appUrl = HttpContext.Request.GetAbsoluteRoot().WithTrailingSlash();
|
||||||
var model = new PayButtonViewModel
|
var model = new PayButtonViewModel
|
||||||
{
|
{
|
||||||
Price = 10,
|
Price = 10,
|
||||||
@@ -788,7 +788,7 @@ namespace BTCPayServer.Controllers
|
|||||||
ButtonSize = 2,
|
ButtonSize = 2,
|
||||||
UrlRoot = appUrl,
|
UrlRoot = appUrl,
|
||||||
CurrencyDropdown = currencyDropdown,
|
CurrencyDropdown = currencyDropdown,
|
||||||
PayButtonImageUrl = appUrl + "/img/paybutton/pay.png",
|
PayButtonImageUrl = appUrl + "img/paybutton/pay.png",
|
||||||
StoreId = store.Id
|
StoreId = store.Id
|
||||||
};
|
};
|
||||||
return View(model);
|
return View(model);
|
||||||
|
|||||||
Reference in New Issue
Block a user