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.
This commit is contained in:
2026-05-13 22:43:46 +02:00
parent e36f816f35
commit a545c15aed

View File

@@ -3,8 +3,12 @@
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(Layout.MainLayout)">
<p>Sorry, there's nothing at this address.</p>
@*
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>