public static bool UrlsAreEqual(string urlA, string urlB)
{
if (urlA == null && urlB == null)
{
return true;
}
if ((urlA == null && urlB != null) || (urlB == null && urlA != null))
{
return false;
}
return urlA.NormalizeUrl().Equals(urlB.NormalizeUrl(), StringComparison.InvariantCultureIgnoreCase);
}