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
After the initial rendering, hit Ctrl-R and the CSV download will be proposed
The issue disappears when removing turbolinks.start()
Using administrate 0.14.0, administrate_exportable 0.2.0, turbolinks 5.2.0 (node dependency).
@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!
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
turbolinks.start()
Using administrate 0.14.0, administrate_exportable 0.2.0, turbolinks 5.2.0 (node dependency).
Thanks for this helpful gem!