Skip to content

NotFoundPage does not work in .NET 10Β #62404

Closed
@MarvinKlein1508

Description

@MarvinKlein1508

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I was trying to use the new NotFoundPage parameter within .NET 10 which ist described here:
https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-10.0?view=aspnetcore-9.0#blazor-router-has-a-notfoundpage-parameter

However it does not work in fresh new BlazorWebApp. Please see this video for a short demonstration:

2025-06-18.22-49-03.mp4

Expected Behavior

I expect the UI from NotFound.razor to show up.

Steps To Reproduce

  1. Create new project
  2. Open a page via URL which does not exist (for example /test)

Exceptions (if any)

No response

.NET Version

10.0.100-preview.5.25277.114

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions