mvc redirect to external url from view code example
Example: how to redirect to extern page in .net core
public ActionResult YourAction()
{
// ...
return Redirect("http://www.example.com");
}
public ActionResult YourAction()
{
// ...
return Redirect("http://www.example.com");
}