Skip to content

Commit

Permalink
bugfix: switch loc and url
Browse files Browse the repository at this point in the history
  • Loading branch information
tnielsenskybruddk committed Oct 2, 2024
1 parent b6e1803 commit d8c72b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Limbo.Umbraco.Seo/Sitemaps/SitemapService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ public XElement ToXmlElement(ISitemapResult sitemap) {
public XElement ToXmlElement(ISitemapItem item) {

XElement xml = new(
SitemapConstants.XNamespace + SitemapConstants.Xml.Location,
new XElement(SitemapConstants.XNamespace + SitemapConstants.Xml.Url, item.Url),
SitemapConstants.XNamespace + SitemapConstants.Xml.Url,
new XElement(SitemapConstants.XNamespace + SitemapConstants.Xml.Location, item.Url),
new XElement(SitemapConstants.XNamespace + SitemapConstants.Xml.LastModified, item.LastModified.ToString("yyyy-MM-dd"))
);

Expand Down

0 comments on commit d8c72b8

Please sign in to comment.