title: I want to redirect the application to external url in ASP.NET Core
body: <pre><code>IHttpContextAccessor _httpContextAccessor;
  
  public void GoToUrl()
  {
      var authorizationRequest = &quot;https://www.google.com/&quot;;                       
      _httpContextAccessor.HttpContext.Response.Redirect(authorizationRequest);
  }
  </code></pre>
  <p>I want to redirect to the user to the url <code>google.com</code> from the above method. Any help will be appreciated.</p>