Skip to content

Commit 99e86dd

Browse files
committed
Fix web example nav links
1 parent 7b30456 commit 99e86dd

17 files changed

+10
-10
lines changed

Example.Web/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
protected override void OnInitialized()
1111
{
12-
NavigationManager.NavigateTo("/");
12+
NavigationManager.NavigateTo(NavMenu.LightRoute);
1313
}
1414
}
1515
</NotFound>

Example.Web/Layout/NavMenu.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="nav-bar monospace">
22
<div class="nav-item">
33
<label class="nav-label @LabelTextCssClass(PrintRoute)">PRINT</label>
4-
<NavLink href="@($"/{PrintRoute}")">
4+
<NavLink href="@($"{PrintRoute}")">
55
<button class="nav-button @ButtonBackgroundCssClass(PrintRoute)">
66
<span class="@ButtonTextCssClass(PrintRoute)">🖨️</span>
77
</button>
@@ -11,7 +11,7 @@
1111

1212
<div class="nav-item">
1313
<label class="nav-label @LabelTextCssClass(LightRoute)">LIGHT</label>
14-
<NavLink href="@($"/{LightRoute}")">
14+
<NavLink href="@($"{LightRoute}")">
1515
<button class="nav-button @ButtonBackgroundCssClass(LightRoute)">
1616
<span class="@ButtonTextCssClass(LightRoute)">🌈</span>
1717
</button>
@@ -21,7 +21,7 @@
2121

2222
<div class="nav-item">
2323
<label class="nav-label @LabelTextCssClass(PaintRoute)">PAINT</label>
24-
<NavLink href="@($"/{PaintRoute}")">
24+
<NavLink href="@($"{PaintRoute}")">
2525
<button class="nav-button @ButtonBackgroundCssClass(PaintRoute)">
2626
<span class="@ButtonTextCssClass(PaintRoute)">🎨</span>
2727
</button>
@@ -35,7 +35,7 @@
3535

3636
private string currentRoute = null!;
3737

38-
private const string LightRoute = "";
38+
internal const string LightRoute = "";
3939
private const string PrintRoute = "print";
4040
private const string PaintRoute = "paint";
4141

0 Bytes
Binary file not shown.
-232 Bytes
Binary file not shown.
7 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)