public static string NormalizeUrl(this string url) { if (url == null) { return url; } if (url.StartsWith("~")) { return url.Substring(1, url.Length); } return url; }