Skip to content

[Blazor] Register/Login forms no longer work in Blazor Web App template #62260

Closed
@MackinnonBuck

Description

@MackinnonBuck

Overview

Submitting the Register and Login forms in the Blazor Web App template appears to do nothing on the latest changes from main:

repro.mp4

None of the form handlers get executed.

Removing the following line in Program.cs fixes the problem:

app.UseStatusCodePagesWithReExecute("/not-found", createScopeForErrors: true);

This might indicate that #62067 caused the regression.

Steps to reproduce

Clone the dotnet/aspnetcore repo at commit 71df2cc (latest at the time of writing) or earlier and follow the steps for running the templates locally. Create the test project by running .\Run-BlazorWeb-Locally.ps1 -Auth Individual from the src/ProjectTemplates/scripts folder.

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Components

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions