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