Example #1
0
        public static string GetSpecialUrl(SiteInfo siteInfo, int specialId, bool isLocal)
        {
            var specialUrl = SpecialManager.GetSpecialUrl(siteInfo, specialId);

            return(isLocal
                ? ApiRoutePreview.GetSpecialUrl(siteInfo.Id, specialId)
                : ParseNavigationUrl(siteInfo, specialUrl, false));
        }
Example #2
0
        public static string GetSpecialUrl(SiteInfo siteInfo, int specialId, bool isLocal)
        {
            var specialUrl = SpecialManager.GetSpecialUrl(siteInfo, specialId);

            var url = isLocal
                ? ApiRoutePreview.GetSpecialUrl(siteInfo.Id, specialId)
                : ParseNavigationUrl(siteInfo, specialUrl, false);

            return(RemoveDefaultFileName(siteInfo, url));
        }