# Data explorer uses popup for download

**URL:** https://meta.discourse.org/t/data-explorer-uses-popup-for-download/298694
**Category:** UX
**Tags:** data-explorer
**Created:** [March 9, 2024, 11:23am UTC](https://meta.discourse.org/t/data-explorer-uses-popup-for-download/298694 "2024-03-09T11:23:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [March 9, 2024, 11:23am UTC](https://meta.discourse.org/t/data-explorer-uses-popup-for-download/298694/1 "2024-03-09T11:23:00Z")

</div>

The [data explorer](https://meta.discourse.org/t/32566?silent=true) plugin [creates a new popup window on the fly](https://github.com/discourse/discourse-data-explorer/blob/0e301bef7468394fec2fa98c79c6c796e483cd9d/assets/javascripts/discourse/components/query-result.js#L243-L247) when you’re downloading the results as CSV or JSON.

This interferes with many browsers (or, to put it better: many browsers interfere with that) and I regularly have to retry because it yields a 404 (because of CSRF protection issues). For instance [Error exporting CSV or JSON from Data Explorer plugin](https://meta.discourse.org/t/error-exporting-csv-or-json-from-data-explorer-plugin/298514)

i wonder if this code from 9 years ago is still the best way to do it? Actually, I don’t see the need for it at all, since the content-disposition header alone should work well (but I’m probably missing something there).
