private static string GetBaseForRelativePaths(string folderPath)
{
string path = "";
if (!string.IsNullOrEmpty(folderPath))
{
//this is only used by relative paths, and only img src's are left relative.
//we are redirecting through our build-in httplistener in order to make white backgrounds transparent
// and possibly shrink
//big images before giving them to gecko which has trouble with really hi-res ones
//Some clients don't want low-res images and can suppress this by setting HtmlDom.UseOriginalImages.
var uri = folderPath + Path.DirectorySeparatorChar;
path = uri.ToLocalhost();
}
return path;
}