diff --git a/EnotaryoPH/EnotaryoPH.Web/Pages/Login.cshtml.cs b/EnotaryoPH/EnotaryoPH.Web/Pages/Login.cshtml.cs index 8f38861..076c0d7 100644 --- a/EnotaryoPH/EnotaryoPH.Web/Pages/Login.cshtml.cs +++ b/EnotaryoPH/EnotaryoPH.Web/Pages/Login.cshtml.cs @@ -65,7 +65,8 @@ namespace EnotaryoPH.Web.Pages new ClaimsPrincipal(claimsIdentity), authProperties); - return RedirectToPage("/Principal/Dashboard/Dashboard"); + var returnUrl = Request.Query["ReturnUrl"].ToString() ?? string.Empty; + return RedirectToPage(string.IsNullOrEmpty(returnUrl) ? "/Principal/Dashboard/Dashboard" : returnUrl); } [Required]