add NotFound page, wire Routes.NotFoundPage, set log level to Debug
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
@page "/404"
|
||||||
|
|
||||||
|
<MudText Typo="Typo.h3">
|
||||||
|
Not Found
|
||||||
|
</MudText>
|
||||||
|
<MudText Typo="Typo.body1">
|
||||||
|
Sorry, the content you are looking for does not exist.
|
||||||
|
</MudText>
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
<Router AppAssembly="typeof(Routes).Assembly">
|
<Router AppAssembly="typeof(Routes).Assembly" NotFoundPage="typeof(Pages.NotFound)">
|
||||||
<Found Context="routeData">
|
<Found Context="routeData">
|
||||||
<RouteView RouteData="routeData" DefaultLayout="typeof(DeepDrftPublic.Client.Layout.MainLayout)" />
|
<RouteView RouteData="routeData" DefaultLayout="typeof(DeepDrftPublic.Client.Layout.MainLayout)" />
|
||||||
<FocusOnNavigate RouteData="routeData" Selector="h1" />
|
<FocusOnNavigate RouteData="routeData" Selector="h1" />
|
||||||
</Found>
|
</Found>
|
||||||
<NotFound>
|
|
||||||
<PageTitle>Not found</PageTitle>
|
|
||||||
<p role="alert">Sorry, there's nothing at this address.</p>
|
|
||||||
</NotFound>
|
|
||||||
</Router>
|
</Router>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Debug",
|
||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Debug"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
|
|||||||
Reference in New Issue
Block a user