This worked yesterday, and I must have changed something at some point, but the url path to the stylesheet no longer works with the following code:
@section Styles {
@{
string path = Url.Content("~") + Model.CssPath;
<link href="path" rel="stylesheet" type="text/css" />
}
}
When I write out 'path' to the page, it's //Content/site.css
. If I browse to http://localhost:59278/Content/site.css
, it works. But, the link path is looking at http://Content/site.css
.
Why?