Exemple #1
0
        public override string TransformUrl(string uri, Visit visit = null)
        {
            var host = this.SitecoreRootUri;

            if (visit != null)
            {
                var visitHost = visit.GetVariable <string>("Host");
                if (!string.IsNullOrEmpty(visitHost))
                {
                    host = new Uri(visitHost);
                }
            }
            return(new Uri(host, uri).ToString());
        }