Rock.Web.UI.RockMasterPage.ResolveRockUrl C# (CSharp) Method

ResolveRockUrl() public method

Resolves the rock URL.
public ResolveRockUrl ( string url ) : string
url string The URL.
return string
        public string ResolveRockUrl( string url )
        {
            string themeUrl = url;
            if ( url.StartsWith( "~~" ) )
            {
                string theme = "Rock";
                if ( _pageCache != null )
                {
                    theme = _pageCache.Layout.Site.Theme;
                }

                themeUrl = "~/Themes/" + theme + ( url.Length > 2 ? url.Substring( 2 ) : string.Empty );
            }

            return ResolveUrl( themeUrl );
        }

Same methods

RockMasterPage::ResolveRockUrl ( string url, bool fingerprint ) : string