How would I be able to get the absolute URL to display on a view?
I currently have this in my code:
<link href="~/css/site.min.css" rel="stylesheet" />
..which displays like this:
<link href="/css/site.min.css" rel="stylesheet" />
What I am looking for is the following:
<link href="http://www.example.com/css/site.min.css" rel="stylesheet" />
I know you could do it with the older ASP.NET MVC 5
, but is this possible with the core versions?
Is it worthwhile having an absolute URL, or will a relative URL be sufficient?