This generates the menu just fine, and the @item.Url is pointing to the correct page, e.g. /news/. BUT, when the page loads, it's loading without the css. If I manually remove the final '/' from the address bar (/news), the page loads correctly.
Here's to hoping that all of my future questions are this easy to answer.
Old link: <link href="css/style.css" rel="stylesheet" type="text/css" />
New link: <link href="~/css/style.css" rel="stylesheet" type="text/css" />
Problem solved. Still trying to figure out how I missed this, but thanks for the tip.
Basic Query Builder and Navigation - why is this happening
Can anyone tell me what's happening here? I've created my navigation using the query builder:
This generates the menu just fine, and the @item.Url is pointing to the correct page, e.g. /news/. BUT, when the page loads, it's loading without the css. If I manually remove the final '/' from the address bar (/news), the page loads correctly.
What am I missing?
Hi Greg
Check, please, how css was included to the page?
I think it will be right place to fix - change css path, then it will work on all pages.
Thanks,
Alex
Here's to hoping that all of my future questions are this easy to answer. Old link:
<link href="css/style.css" rel="stylesheet" type="text/css" />
New link:<link href="~/css/style.css" rel="stylesheet" type="text/css" />
Problem solved. Still trying to figure out how I missed this, but thanks for the tip.is working on a reply...