title: ASP.NET Core redirect from POST action to url doesn't work
body: <p>I call a POST method in react but at the end I want to get redirected to the root url of my application.</p>
  
  <p>I have this code where I'm trying to redirect to the root <code>url</code> (localhost:50000) , but it doesn't do anything</p>
  
  <p>I also tried doing <code>Redirect("http://localhost:50000")</code> and it also doesn't work. I tried testing with google.com and I get a serverside error, basically I can't redirect to any website.</p>
  
  <pre><code>[Route("api/[controller]")]
  [ApiController]
  public class EntityBuilderController : ControllerBase
  {
  
      [HttpPost("[action]")]
      public ActionResult CreateEntity(string xmlPath, string dllPath)
      {
          DataMapper.ExtractEntities(xmlPath, dllPath);
  
          return Redirect(Url.Content("~/"));
      }
  
  }
  </code></pre>