Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 fix router notfound create 404.razor #577

Merged
merged 1 commit into from
Dec 23, 2023
Merged

Conversation

neozhu
Copy link
Owner

@neozhu neozhu commented Dec 23, 2023

The NotFound property of the Router component is no longer working in Blazor Web App. This is because the NotFound property is now deprecated in favor of using a custom 404.razor page.

To fix this issue, you need to create a new 404.razor page in your Blazor Web App project. The 404.razor page should return a 404 status code and render a custom 404 page.

@neozhu neozhu merged commit 6a3ff98 into main Dec 23, 2023
2 checks passed
@neozhu neozhu deleted the fix-router-notfound branch December 23, 2023 08:41
@Bram1903
Copy link
Collaborator

@neozhu,

Thanks a lot of sharing this information. I was funny enough looking into this in one of my own projects yesterday as I was confused why my NotFound property wasn't working anymore. Since I am on vacation since today I let it go, as I had to pack my bags, but now at least I know what is going on!

Kind regards,
Bram

@neozhu
Copy link
Owner Author

neozhu commented Dec 23, 2023

merry christmas,and Enjoy your vacation!

@Bram1903
Copy link
Collaborator

merry christmas,and Enjoy your vacation!

Merry Christmas to you as well, and thank you! 馃槉

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.

None yet

2 participants