public override string getImagePath(bool forInternalAccess, bool includeSessionIdIfNeeded, string nameOverride) { HttpRequest request = HttpContext.Current.Request; try { HeContext heContext = Global.App.OsContext; string path = heContext.OsISAPIFilter.GetHostSuffix(request, ""); bool keepPTA = AppInfo.GetAppInfo().eSpaceId == Global.eSpaceId && nameOverride == null; if (!keepPTA || forInternalAccess) { path += RuntimePlatformUtils.GetEspacePrettyNamePath(nameOverride ?? "Address_CS", heContext); } else { path += (heContext.OsISAPIFilter.IsActiveInRequest(request) ? heContext.OsISAPIFilter.GetPath(request, "") + "/": "/Address_CS/"); } if (keepPTA) { path += AppInfo.GetAppInfo().PtaPath; } return(RuntimePlatformUtils.CheckUriSecurity(request, path)); } catch { return(""); } }