Ejemplo n.º 1
0
 private IActionResult RedirectToReturnUrl(string?returnUrl)
 {
     if (urlGenerator.IsAllowedHost(returnUrl) || interactions.IsValidReturnUrl(returnUrl))
     {
         return(Redirect(returnUrl));
     }
     else
     {
         return(Redirect("~/../"));
     }
 }