Writing
@Url.Content(\"~/Something/Something.html\")
in razor renders
/AppFolder/Something/Something.html
I
You can use a helper to produce a full url, including protocol. Note the first lowercase in url.Action
.
var url = new UrlHelper(System.Web.HttpContext.Current.Request.RequestContext);
var fullUrl = url.Action("YourAction", "YourController", new { id = something }, protocol: System.Web.HttpContext.Current.Request.Url.Scheme);
Output
https://www.yourdomain.com/YourController/YourAction?id=something