text: public static string authoritySafePath(string authority, string path){if (authority != null && !string.IsNullOrEmpty(authority) && !string.IsNullOrEmpty(path) && !path.StartsWith("/")){return "/" + path;}return path;}