Skip to content

Commit

Permalink
Merge pull request #9 from wAmpIre/wampire/fix-article-custom-urls
Browse files Browse the repository at this point in the history
Use/fix custom article URL
  • Loading branch information
dArignac authored Feb 26, 2018
2 parents 308b408 + 6ab5e45 commit f136e3f
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 f136e3f

Please sign in to comment.