Blazor fails on page reload

Viewed 185

I used one of the VS2019 project templates to create a new Blazor app. The menu on the left in the app works, but as soon as I hit F5 or type in the URL e.g. https://localhost:44352/fetchdata the browser runs into 404 page not found. Any idea what might be the problem?

1 Answers

I was missing the MapFallbackToPage call in UseEndpoints.

Related