How to Generate absolute urls with https in MVC3?
I am using MVC3 and am trying to serve content from https, the problem is that when I call Url.Content the files are still served from http using a relative url. I thought this problem was addressed in MVC3 but i can't seem to find any solution. Does anybody know if this issue is inherently solved in MVC3 and how to accomplish it or do I need to create my own helper methods to generate absolute Urls based on protocol? You can probably implement your own solution using VirtualPathUtility.ToAbsolute . Probably something like this: public static class UrlHelperExtension { public static string