Skip to content

Commit

Permalink
Fix typo in filename generation in find-broken-links view
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Sep 23, 2024
1 parent e01309f commit aafda25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
5.5.4 (unreleased)
------------------

- Nothing changed yet.
- Fix typo in filename generation in "find-broken-links" view.
[cekk]


5.5.3 (2024-09-23)
Expand Down
4 changes: 2 additions & 2 deletions src/redturtle/volto/browser/find_broken_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def __call__(self):
"""
Check all contents if there are some internal links with resolveuid broken
"""

site_id = api.portal.get().getId()
results = self.check_links()
self.request.response.setHeader("Content-type", "application/csv")
self.request.response.setHeader(
"Content-disposition", "attachment; filename=incarichi.csv"
"Content-disposition", f"attachment; filename={site_id}_broken_links.csv"
)

sbuf = StringIO()
Expand Down

0 comments on commit aafda25

Please sign in to comment.