OdeToFood icon indicating copy to clipboard operation
OdeToFood copied to clipboard

default view component doesn't link correctly +

Open Tholdrin opened this issue 4 years ago • 1 comments

I'm at a loss, following tutorial (ASP.NET Core Fundamentals part 6) - step by step and have several issues. 1.) footer covers over the generated cards in /Lists 2.) The footer with a total number of restaurants generated in a default view component and a link to Lists - doesn't actually link where it's supposed to but instead to whatever page you're currently on instead.

The only difference in code is using class 'card' instead of 'well' and 'Panel' as BS5 no longer supports those.

Tholdrin avatar Jun 29 '21 20:06 Tholdrin

  1. This is a css issue that's not covered in the tutorial. If you go to wwwroot > css > site.css and remove the position property from the .footer class, this will fix the issue. For the time being at least.

  2. Make sure the path for the link is "/Restaurants/List". There are @Model restaurants here. <a asp-page="/Restaurants/List">View All</a>

ShawnOrr avatar Jul 09 '21 05:07 ShawnOrr