SourceLabsLLC / administrate_exportable

Simple plugin to add CSV export feature to Administrate
https://www.sourcelabs.io/
MIT License
42 stars 20 forks source link

Interference with Turbolinks #26

Open sedubois opened 4 years ago

sedubois commented 4 years ago

Expected behaviour

When clicking the export button, the page stays the same but a file download popup appears asking where to save the CSV file.

Actual behaviour

When clicking the export button, the browser navigates to a new page where the CSV contents are rendered in a single line (no line breaks), as if a plain text/HTML response had been given.

Workarounds

Using administrate 0.14.0, administrate_exportable 0.2.0, turbolinks 5.2.0 (node dependency).

Thanks for this helpful gem!

andreibondarev commented 4 years ago

@sedubois I'm not sure that I'll have time to address this in the near future, but if you'd like to submit a PR/fix then I'm happy to review it and merge it in!