Skip to content

Interference with Turbolinks #26

Description

@sedubois

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

  • 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).

Thanks for this helpful gem!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions