public static string AsHttps(this string absoluteUrl) { return IsNullOrEmpty(absoluteUrl) ? null : absoluteUrl.ReplaceFirst("http://", "https://"); }