diff --git a/public/js/report_tables.js b/public/js/report_tables.js index 691a0b388..0298e009b 100644 --- a/public/js/report_tables.js +++ b/public/js/report_tables.js @@ -62,7 +62,7 @@ const report_export_toggle = (function () { $exportItem.closest('.dropdown-menu').prev('[data-toggle="dropdown"]').dropdown('toggle'); - const path = location.pathname.replace(/^(\/reports\/[^/]+)/, '$1/exportAll/' + format); + const path = location.pathname.replace(/(\/reports\/[^/]+)/, '$1/exportAll/' + format); window.location = path + location.search; }, true); };