title: Url.Page creates wrong url
body: <p>Have a look at this code:</p>
  
  <pre><code>var callbackUrl = Url.Page("/Account/ConfirmEmail", null, new { userId = user.Id, code }, Request.Scheme);
  </code></pre>
  
  <p>The result is this:</p>
  
  <blockquote>
    <p><a href="http://localhost:5000/Account/Register?userId=614d16ae-4e95-4796-8d67-cb829e12585b&amp;code=CfDJ8OeNFdnFCrtCsRU7ofatUuROudlTo%2BFQe84oAiL%2BPJSoYwGH9q1Xadg8XBbpOFg5DiRH1vDoGeQ8l3qIFHjB3NMM3ZDTlQexawj1b%2BJ7P6X3SHoBsYs7jLYwcfGQCbnk1SJA5koFkoDcWj04nsjzQlJMe8ttR0DFdi%2B6TTbWI8WkPBaS083O3aU%2BL2bbYGNwwikhrkbB0nHy4PRzK1LZuZo%3D&amp;page=%2FAccount%2FConfirmEmail" rel="nofollow noreferrer">http://localhost:5000/Account/Register?userId=614d16ae-4e95-4796-8d67-cb829e12585b&amp;code=CfDJ8OeNFdnFCrtCsRU7ofatUuROudlTo%2BFQe84oAiL%2BPJSoYwGH9q1Xadg8XBbpOFg5DiRH1vDoGeQ8l3qIFHjB3NMM3ZDTlQexawj1b%2BJ7P6X3SHoBsYs7jLYwcfGQCbnk1SJA5koFkoDcWj04nsjzQlJMe8ttR0DFdi%2B6TTbWI8WkPBaS083O3aU%2BL2bbYGNwwikhrkbB0nHy4PRzK1LZuZo%3D&amp;page=%2FAccount%2FConfirmEmail</a></p>
  </blockquote>
  
  <p>Where does the Register come from? Why is it not Account/ConfirmEmail? I did create this in the Register method of Account controller, so I suppose register came from there, but why did it use that as opposed to what I passed in? I do see that it added it as a parameter at the very end, but why?</p>
  
  <p>As far as I can tell, according to this, I did it right.</p>
  
  <p><a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.urlhelperextensions.page?view=aspnetcore-2.1#Microsoft_AspNetCore_Mvc_UrlHelperExtensions_Page_Microsoft_AspNetCore_Mvc_IUrlHelper_System_String_System_String_System_Object_System_String_System_String_" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.urlhelperextensions.page?view=aspnetcore-2.1#Microsoft_AspNetCore_Mvc_UrlHelperExtensions_Page_Microsoft_AspNetCore_Mvc_IUrlHelper_System_String_System_String_System_Object_System_String_System_String_</a></p>
  
  <p>I am using core 2.1 still.</p>
  
  <p>EDIT: Their registration tutorial says the same thing as what I have above:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-2.1&amp;tabs=visual-studio#scaffold-register-login-and-logout" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-2.1&amp;tabs=visual-studio#scaffold-register-login-and-logout</a></p>
  
  <p>If I use <code>.Action</code> instead of <code>.Page</code> I get my desired result, but I would like to know why <code>.Page</code> acts differently.</p>