From 5e3f211dc0d6b925e59f1167eadda0ef27eb1d78 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Wed, 23 Jul 2025 09:41:24 -0500 Subject: [PATCH] Fix CSV export filename handling by removing redundant '.csv' extension in download attribute. --- inventory/static/js/csv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/static/js/csv.js b/inventory/static/js/csv.js index b0dac9c..184ad2a 100644 --- a/inventory/static/js/csv.js +++ b/inventory/static/js/csv.js @@ -20,7 +20,7 @@ async function export_csv(ids, csv_route, filename=`${csv_route}_export.csv`) { const link = document.createElement("a"); link.href = url; - link.download = `${filename}.csv`; + link.download = filename; link.click(); console.log(url);