diff --git a/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt b/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt index 411a96487..a5bd78d86 100644 --- a/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt +++ b/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt @@ -198,7 +198,7 @@ POSSIBILITY OF SUCH DAMAGE. $('') .attr('id','downloadFile') .attr('href','data:text/csv;charset=utf8,' + encodeURIComponent(output_data)) - .attr('download','vouchers.csv') + .attr('download',voucher_groupname.toLowerCase() + '.csv') .appendTo('body'); $('#downloadFile').ready(function() {