Skip to content

Break out of turbo frame loses flash #897

@gap777

Description

@gap777

Hi,
I'm trying to use the recent changes to allow server-side decision to break out of a turbo frame. Here's my sequence of activity:

  1. GET from within a turbo frame
  2. Server detects error condition, and instead of responding with turbo-frame, redirects WITH flash alert. Redirect is to page having meta name="turbo-visit-control" content="reload"
  3. Page is fetched, containing alert, and discarded.
  4. Page is fetched again. No flash.

The issue I'm reporting is the server logs show the redirected-to page being fetched twice (steps 3 and 4), and the flash message (included in the response to 3) is discarded and not included with step 4.

Am I doing something wrong?
Is this a bug?

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