Url passed in is: "/Reporting/Dashboard"
Why is the Url.get
returning null
?
public ActionResult RedirectToLocal(string returnUrl)
{
if (Url.IsLocalUrl(returnUrl))
{
return Redirect(returnUrl);
}
else
{
return RedirectToAction("Index", "Dashboard", new { area = "Reporting" });
}
}