Skip to content

Commit bb072d2

Browse files
committed
Fix router for 3.1 preview1
1 parent 667e877 commit bb072d2

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
<!--
2-
Configuring this here is temporary. Later we'll move the app config
3-
into Program.cs, and it won't be necessary to specify AppAssembly.
4-
-->
5-
<Router AppAssembly="typeof(Program).Assembly" />
1+
<!--
2+
Configuring this here is temporary. Later we'll move the app config
3+
into Program.cs, and it won't be necessary to specify AppAssembly.
4+
-->
5+
<Router AppAssembly="typeof(Program).Assembly" >
6+
<Found Context="routeData">
7+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
8+
</Found>
9+
<NotFound>
10+
<LayoutView Layout="@typeof(MainLayout)">
11+
<p>Sorry, there's nothing at this address.</p>
12+
</LayoutView>
13+
</NotFound>
14+
</Router>

0 commit comments

Comments
 (0)