Skip to content

Receive "The returnUrl field is required" validation error when enabling Nullable reference types #22656

@bzamora

Description

@bzamora

Describe the bug

When enabling nullable reference types I receive a validation error "The returnUrl field is required" when navigating to:
~/Identity/Account/Register
or
~/Identity/Account/Login

To Reproduce

Start from a new aspnetcore identity template with individual account, all views scaffolded. Then enable Nullable reference types in the project,

<Nullable>enable</Nullable>

Navigate to ~/Identity/Account/Register. You should see in the validation summary

"The returnUrl field is required"

Further technical details

  • ASP.NET Core version Microsoft.AspNetCore.App 3.1.4

image

image

Metadata

Metadata

Assignees

Labels

area-identityIncludes: Identity and providers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions