mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Notifications: Fix mark all as seen return URL
Fixes the return URL for the case in which the dropdown content got replaced after a notification update: As the refresh request is done via AJAX, the return URL previously was `/notifications/getnotificationdropdownui` (the `Context.Request.GetCurrentPathWithQueryString()` value of the AJAX action). We need to pass in the URL of the actual current page as the return URL.
This commit is contained in:
committed by
Andrew Camilleri
parent
3d63e12c9e
commit
fd3d389557
@@ -43,9 +43,9 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult GetNotificationDropdownUI()
|
||||
public IActionResult GetNotificationDropdownUI(string returnUrl)
|
||||
{
|
||||
return ViewComponent("Notifications", new { appearance = "Dropdown" });
|
||||
return ViewComponent("Notifications", new { appearance = "Dropdown", returnUrl });
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
||||
Reference in New Issue
Block a user