Skip to content

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
@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.

3 participants