The NotFound route now renders Pages.Receiver.Error404 inside ReceiverLayout instead of a message in MainLayout. Added a comment to clarify this mirrors the HomeController.Error404 fallback behavior from EnvelopeGenerator.Web.
15 lines
503 B
Plaintext
15 lines
503 B
Plaintext
<Router AppAssembly="typeof(Program).Assembly">
|
|
<Found Context="routeData">
|
|
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" />
|
|
</Found>
|
|
<NotFound>
|
|
@*
|
|
Mirrors HomeController.Error404 from EnvelopeGenerator.Web,
|
|
which maps fallback requests to the Error404 view.
|
|
*@
|
|
<LayoutView Layout="@typeof(Layout.ReceiverLayout)">
|
|
<Pages.Receiver.Error404 />
|
|
</LayoutView>
|
|
</NotFound>
|
|
</Router>
|