RouteViewIf a user requests a route that exists, RouteView will be the first component to respond to the request. RouteView will decide the default layout, then take the route data from the preview component and pass it to the next component in the chain.
You can download the example code used in this topic on GitHub.
Changing the default layout in RouteView means changing the default layout for the whole website.
SecondaryLayout as your default layout, open App.razor, look for the existing <RouteView> component and change it to:<RouteView RouteData="routeData" DefaultLayout="typeof(SecondaryLayout)" />