Skip to content

Blazor CRUD uses NotFound() method instead of navigation #3162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ilonatommy
Copy link
Member

@ilonatommy ilonatommy commented Jun 17, 2025

This PR is updating Blazor CRUD scaffolder to use NavigationManager.NotFound() instead of NavigationManager.NavigateTo("notfound"). I am not sure how to apply all the necessary changes. I will list all the actions needed and would be grateful for help in completing it, cc @deepchoudhery, @tlmii.

Changes:

Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have the scaffolder create the NotFound page if it doesn't exist? Similarly, add the required code (UseStatusCodePages and NotFoundPageType)

@danroth27
Copy link
Member

Note that these changes are specific to .NET 10. For .NET 9 and earlier we'll need to continue to generate the existing code for handling not found responses.

deepchoudhery

This comment was marked as outdated.

@deepchoudhery deepchoudhery self-requested a review June 23, 2025 18:05
@deepchoudhery deepchoudhery dismissed their stale review June 23, 2025 18:28

premature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants