public string NavigateUrl(int tabID, string controlKey, string pageName, bool pageRedirect, params string[] additionalParameters) { var isSuperTab = TestableGlobals.Instance.IsHostTab(tabID); var settings = PortalController.Instance.GetCurrentPortalSettings(); var language = Globals.GetCultureCode(tabID, isSuperTab, settings); var url = TestableGlobals.Instance.NavigateURL(tabID, isSuperTab, settings, controlKey, language, pageName, additionalParameters); // Making URLs call popups if (PortalSettings != null && PortalSettings.EnablePopUps) { if (!UIUtilities.IsLegacyUI(ModuleId, controlKey, PortalId) && (url.Contains("ctl"))) { url = UrlUtils.PopUpUrl(url, null, PortalSettings, false, pageRedirect); } } return(url); }