File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
src/Components/test/testassets/Components.TestServer/RazorComponents Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 4646 }
4747 else
4848 {
49- <Router AppAssembly =" @typeof(App).Assembly" AdditionalAssemblies =" new[] { typeof(TestContentPackage.NotFound.NotFoundPage).Assembly }" NotFoundPage =" NotFoundPageType" >
50- <Found Context =" routeData" >
51- <RouteView RouteData =" @routeData" />
52- <FocusOnNavigate RouteData =" @routeData" Selector =" [data-focus-on-navigate]" />
53- </Found >
54- @if (NotFoundPageType is null )
55- {
49+ @if (NotFoundPageType is not null )
50+ {
51+ <Router AppAssembly =" @typeof(App).Assembly" AdditionalAssemblies =" new[] { typeof(TestContentPackage.NotFound.NotFoundPage).Assembly }" NotFoundPage =" NotFoundPageType" >
52+ <Found Context =" routeData" >
53+ <RouteView RouteData =" @routeData" />
54+ <FocusOnNavigate RouteData =" @routeData" Selector =" [data-focus-on-navigate]" />
55+ </Found >
56+ </Router >
57+ }
58+ else
59+ {
60+ <Router AppAssembly =" @typeof(App).Assembly" AdditionalAssemblies =" new[] { typeof(TestContentPackage.NotFound.NotFoundPage).Assembly }" >
61+ <Found Context =" routeData" >
62+ <RouteView RouteData =" @routeData" />
63+ <FocusOnNavigate RouteData =" @routeData" Selector =" [data-focus-on-navigate]" />
64+ </Found >
5665 <NotFound ><p id =" not-found-fragment" >There 's nothing here</p></NotFound>
57- }
58- </ Router >
66+ </ Router >
67+ }
5968 }
6069 <script >
6170 // This script must come before blazor.web.js to test that
You can’t perform that action at this time.
0 commit comments