a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[frontend] Switch to NotFoundPage Blazor Router parameter

+8 -9
+3 -9
Iceshrimp.Frontend/App.razor
··· 6 6 @inject UpdateService UpdateSvc; 7 7 <ErrorBoundary> 8 8 <ChildContent> 9 - <Router AppAssembly="@typeof(App).Assembly"> 9 + <Router AppAssembly="@typeof(App).Assembly" NotFoundPage="@typeof(NotFound)"> 10 10 <Found Context="routeData"> 11 11 <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> 12 12 <NotAuthorized> ··· 16 16 @* <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/> *@ 17 17 <FocusOnNavigate RouteData="@routeData" Selector="h1"/> 18 18 </Found> 19 - <NotFound> 20 - <PageTitle>Not found</PageTitle> 21 - <LayoutView Layout="@typeof(MainLayout)"> 22 - <p role="alert">Page not found.</p> 23 - </LayoutView> 24 - </NotFound> 25 19 </Router> 26 20 </ChildContent> 27 - <ErrorContent Context="Exception"> 28 - <ErrorUi Exception="Exception"></ErrorUi> 21 + <ErrorContent Context="exception"> 22 + <ErrorUi Exception="exception"></ErrorUi> 29 23 </ErrorContent> 30 24 </ErrorBoundary> 31 25
+5
Iceshrimp.Frontend/NotFound.razor
··· 1 + @page "/not-found" 2 + <PageTitle>Not found</PageTitle> 3 + <LayoutView Layout="@typeof(MainLayout)"> 4 + <p role="alert">Page not found.</p> 5 + </LayoutView>