Skip to content

Commit 1ab805e

Browse files
committed
Fix bug in View Component
1 parent 4d834c8 commit 1ab805e

File tree

1 file changed

+1
-1
lines changed
  • Chapter20/B_RecipeApplication_SqlLite_ViewComponents/RecipeApplication/Pages/Shared/Components/MyRecipes

1 file changed

+1
-1
lines changed

Chapter20/B_RecipeApplication_SqlLite_ViewComponents/RecipeApplication/Pages/Shared/Components/MyRecipes/Default.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<div class="list-group list-group-flush">
1111
@foreach (var recipe in Model)
1212
{
13-
<a asp-page="Recipes/View" asp-route-id="@recipe.Id" class="list-group-item list-group-item-action">@recipe.Name</a>
13+
<a asp-page="/Recipes/View" asp-route-id="@recipe.Id" class="list-group-item list-group-item-action">@recipe.Name</a>
1414
}
1515
</div>

0 commit comments

Comments
 (0)