Skip to content

[Templates] Blazor-server with Identity is broken #25353

@javiercn

Description

@javiercn

This is an issue with the template. The fix would be to use a different set of _LoginPartial files, one for OrgAuth and for IndividualAuth similar to the Razor Pages template: https://github.com/dotnet/aspnetcore/blob/master/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_LoginPartial.OrgAuth.cshtml.

We'll be addressing this for rc1. In the meanwhile, you can workaround this issue by editing the Areas\Identity\Pages\Shared\_LoginPartial.cshtml file in your project file to change all instances of asp-area="MicrosoftIdentity" to asp-area="Identity"

- <a class="nav-link text-dark" asp-area="MicrosoftIdentity" asp-page="/Account/Register">Register</a>
+ <a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Register">Register</a>

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions