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:
@@ -3,8 +3,12 @@
|
|||||||
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" />
|
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" />
|
||||||
</Found>
|
</Found>
|
||||||
<NotFound>
|
<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>
|
</LayoutView>
|
||||||
</NotFound>
|
</NotFound>
|
||||||
</Router>
|
</Router>
|
||||||
|
|||||||
Reference in New Issue
Block a user