I would like my .razor page to have the Default Layout (MainLayout) unless the LayoutType parameter is == "Tab" I am always getting the TabLayout. The default layout is MainLayout.
@page "/WasteNum/{LayoutType}"@if (LayoutType == "Tab"){ @layout TabLayout }@code { [Parameter] public string LayoutType { get; set; } = "Main";}