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