Ejemplo n.º 1
0
 private string BuildNodeUrl(string baseUrl, NamedEntity entity, UrlRecordCollection slugs, Language language)
 {
     return(baseUrl + slugs.GetSlug(language.Id, entity.Id, true));
 }
Ejemplo n.º 2
0
        public virtual XmlSitemapNode CreateNode(UrlHelper urlHelper, string baseUrl, NamedEntity entity, UrlRecordCollection slugs, Language language)
        {
            var slug = slugs.GetSlug(language.Id, entity.Id, true);
            var path = urlHelper.RouteUrl(entity.EntityName, new { SeName = slug }).EmptyNull().TrimStart('/');
            var loc  = baseUrl + path;

            return(new XmlSitemapNode
            {
                LastMod = entity.LastMod,
                Loc = loc
            });
        }