Skip to content

Commit

Permalink
Use/fix custom article URL
Browse files Browse the repository at this point in the history
  • Loading branch information
wAmpIre committed Jan 31, 2018
1 parent 308b408 commit 6ab5e45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extended_sitemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ def generate_output(self, writer):

# process articles
for article in articles_sorted:
urls += self.__create_url_node_for_content(article, 'articles')
urls += self.__create_url_node_for_content(
article,
'articles',
url=urljoin(self.url_site, article.url)
)

# process pages
for page in pages_sorted:
Expand Down

0 comments on commit 6ab5e45

Please sign in to comment.