title: How to redirect on ASP.Net Core Razor Pages
body: <p>I am using the new Razor Pages in ASP.Net core 2<br>
  Now I need to redirect</p>
  
  <p>I tried this, but the page does not redirect:</p>
  
  <pre><code>public class IndexModel : PageModel
  {
      public void OnGet()
      {
          string url = "/.auth/login/aad?post_login_redirect_url=" + Request.Query["redirect_url"];
  
          Redirect(url);
      }
  }
  </code></pre>
  
  <p>How to redirect?</p>