Skip to content

Commit

Permalink
removing trailing slash (#1556)
Browse files Browse the repository at this point in the history
Co-authored-by: Staxly <[email protected]>
Co-authored-by: Michael Volo <[email protected]>
  • Loading branch information
3 people authored Apr 23, 2024
1 parent c19d235 commit 95d990a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions news/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class NewsIndex(Page):
def get_sitemap_urls(self, request=None):
return [
{
'location': '{}/blog/'.format(Site.find_for_request(request).root_url),
'location': '{}/blog'.format(Site.find_for_request(request).root_url),
'lastmod': (self.last_published_at or self.latest_revision_created_at),
}
]
Expand Down Expand Up @@ -425,7 +425,7 @@ def save(self, *args, **kwargs):
def get_sitemap_urls(self, request=None):
return [
{
'location': '{}/blog/{}/'.format(Site.find_for_request(request).root_url, self.slug),
'location': '{}/blog/{}'.format(Site.find_for_request(request).root_url, self.slug),
'lastmod': (self.last_published_at or self.latest_revision_created_at),
}
]
Expand Down Expand Up @@ -550,7 +550,7 @@ def get_press_kit(self):
def get_sitemap_urls(self, request=None):
return [
{
'location': '{}/press/'.format(Site.find_for_request(request).root_url),
'location': '{}/press'.format(Site.find_for_request(request).root_url),
'lastmod': (self.last_published_at or self.latest_revision_created_at),
}
]
Expand Down

0 comments on commit 95d990a

Please sign in to comment.