aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Blazor Register page template contains asp-route-returnUrl="@ReturnUrl"

Open tesar-tech opened this issue 6 months ago • 1 comments

asp-route-returnUrl is used here:

https://github.com/dotnet/aspnetcore/blob/30fd6e2c2336a28e3caf9a289827d90f56db2083/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages/Register.razor#L25C33-L25C65

But tag helpers like asp-route-* do not work in Blazor components.

Happy to fix it if you'd like.

tesar-tech avatar Jun 14 '25 21:06 tesar-tech

@tesar-tech thanks for contacting us.

@halter73 @MackinnonBuck was this intentional or was this a "copy/paste" error. Is the URL actually used for anything?

javiercn avatar Jun 17 '25 09:06 javiercn

This looks like a copy/paste error that happened when translating the Razor Pages implementation to Blazor.

MackinnonBuck avatar Jun 19 '25 14:06 MackinnonBuck