Answer by calingasan for Setting a startup page in Blazor
You do not need to configure routing on your startup. Routing just works per razor page. What ever you put on @page is the routing path for that razor page e.g. Index.razor route to root path "/".@page...
View ArticleAnswer by Zeus for Setting a startup page in Blazor
Just put @page "/" on top of your page you want to be default. Remove @page "/" from Index.razor@page "/"@page "/fetchdata"
View ArticleAnswer by PeteBal for Setting a startup page in Blazor
Here's what we ended up doing (for better or worse)...We found through numerous tests that the following line of code in the cshtml file was causing one of the errors:@inject...
View ArticleAnswer by Mike Brind for Setting a startup page in Blazor
Copy the @page directive including the route template:@page "/"from the Index.cshtml file to the Home.cshtml file, and then remove the Index.cshtml file, or provide a different route template to its...
View ArticleSetting a startup page in Blazor
The startup page in my Blazor application is Index.cshtml. I'd like to change the startup page to the homepage, namely my Home.cshtml.I'm using vs2019, ASPNET CORE Blazor (0.9.0-preview3-19154-020)....
View Article