From aafda254cc349f490ec5c925a4a169461f46d26c Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Mon, 23 Sep 2024 13:42:40 +0200 Subject: [PATCH] Fix typo in filename generation in find-broken-links view --- CHANGES.rst | 3 ++- src/redturtle/volto/browser/find_broken_links.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 8036304..56d2edf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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) diff --git a/src/redturtle/volto/browser/find_broken_links.py b/src/redturtle/volto/browser/find_broken_links.py index 29ce08f..f2853b8 100644 --- a/src/redturtle/volto/browser/find_broken_links.py +++ b/src/redturtle/volto/browser/find_broken_links.py @@ -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()