mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 07:11:10 +00:00
Preserves the current URL as the return URL when language is changed
This commit is contained in:
1 parent
f43a8fd098
commit
8cbfb56389
3 files changed
+32
-22
No files matched your search
@@ -14,18 +14,18 @@ namespace Lumina.Presentation.Web.Common.Filters.ActionFilters;
|
||||
public class StoreLastViewFilter : IActionFilter
|
||||
{
|
||||
/// <summary>
|
||||
/// Executes before the action method is called
|
||||
/// Executes before the action method is called.
|
||||
/// </summary>
|
||||
/// <param name="context">The action executing context</param>
|
||||
/// <param name="context">The action executing context.</param>
|
||||
public void OnActionExecuting(ActionExecutingContext context)
|
||||
{
|
||||
// no action needed before execution
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes after the action method is called
|
||||
/// Executes after the action method is called.
|
||||
/// </summary>
|
||||
/// <param name="context">The action executed context containing the action result</param>
|
||||
/// <param name="context">The action executed context containing the action result.</param>
|
||||
public void OnActionExecuted(ActionExecutedContext context)
|
||||
{
|
||||
if (context.Result is ViewResult)
|
||||
|
||||
Reference in new issue
Block a user