private void ClearUrlParams(ref List <string> urlParmsList, ref string PageName, string Slug, int TabID, PortalSettings pS)
        {
            var Locales = LocaleController.Instance.GetLocales(pS.PortalId);

            //Remove Slug
            urlParmsList.Remove(Slug);

            //Check if locale matches
            foreach (var key in Locales.Keys)
            {
                if (urlParmsList.Contains(key.ToLower()))
                {
                    urlParmsList.Remove(key.ToLower());
                    break;
                }
            }

            // if locale is changed in portal alias, for Live Article
            foreach (var key in pS.PortalAlias.HTTPAlias.ToString().Split('/'))
            {
                if (urlParmsList.Contains(key.ToLower()))
                {
                    urlParmsList.Remove(key.ToLower());
                    break;
                }
            }

            URLFactory.GetPageName(ref PageName, TabID, pS);
        }