Skip to content

Interference with Turbolinks #26

Closed

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

  1. andreibondarev commented on Aug 12, 2020

    @andreibondarev
    Member

    @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!

  2. andreibondarev commented on Oct 21, 2026

    @andreibondarev
    Member

    This is addressed in #59 and will close automatically when it's merged.

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