Files
TekH a545c15aed Update NotFound route to use ReceiverLayout and Error404
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.
2026-05-13 22:43:46 +02:00

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>