title: Redirecting in blazor with parameter
body: <p>Hello how can you redirect to another page in <code>Blazor</code> with a parameter?</p>
  
  <pre><code>@page "/auth"
  @using Microsoft.AspNetCore.Blazor.Services;
  @inject AuthService auth
  @inject IUriHelper urihelper;
  
  &lt;input type="text" bind="@Username" /&gt;
  &lt;button onclick="@AuthAsync"&gt;Authenticate&lt;/button&gt;
  
  
  
  @functions{
  
      public string Username { get; set; }
      public string url = "/home";
  
      public async Task AuthAsync()
      {
          var ticket=await this.auth.AuthenticateAsync(Username);
          urihelper.NavigateTo(url); //i see no overload that accepts parameters
      }
  }
  </code></pre>
  
  <p>In this case i want to navigate to the <code>/home</code> page giving it a string as parameter.</p>