mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
fix app redirect to app instead of root url
This commit is contained in:
@@ -19,6 +19,7 @@ using BTCPayServer.Services.Rates;
|
|||||||
using Ganss.XSS;
|
using Ganss.XSS;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Cors;
|
using Microsoft.AspNetCore.Cors;
|
||||||
|
using Microsoft.AspNetCore.Http.Extensions;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@@ -183,7 +184,7 @@ namespace BTCPayServer.Controllers
|
|||||||
NotificationURL = settings.NotificationUrl,
|
NotificationURL = settings.NotificationUrl,
|
||||||
FullNotifications = true,
|
FullNotifications = true,
|
||||||
ExtendedNotifications = true,
|
ExtendedNotifications = true,
|
||||||
RedirectURL = request.RedirectUrl,
|
RedirectURL = request.RedirectUrl ?? Request.GetDisplayUrl(),
|
||||||
|
|
||||||
|
|
||||||
}, store, HttpContext.Request.GetAbsoluteRoot());
|
}, store, HttpContext.Request.GetAbsoluteRoot());
|
||||||
@@ -255,6 +256,7 @@ namespace BTCPayServer.Controllers
|
|||||||
OrderId = orderId,
|
OrderId = orderId,
|
||||||
NotificationURL = notificationUrl,
|
NotificationURL = notificationUrl,
|
||||||
RedirectURL = redirectUrl,
|
RedirectURL = redirectUrl,
|
||||||
|
// RedirectURL = redirectUrl ?? Request.GetDisplayUrl(),
|
||||||
FullNotifications = true,
|
FullNotifications = true,
|
||||||
}, store, HttpContext.Request.GetAbsoluteRoot());
|
}, store, HttpContext.Request.GetAbsoluteRoot());
|
||||||
return RedirectToAction(nameof(InvoiceController.Checkout), "Invoice", new { invoiceId = invoice.Data.Id });
|
return RedirectToAction(nameof(InvoiceController.Checkout), "Invoice", new { invoiceId = invoice.Data.Id });
|
||||||
|
|||||||
Reference in New Issue
Block a user