Skip to content

Getting reloaded twice after a redirect_back from a turbo_stream request #1362

Open
@titanve

Description

Hi,

I'm getting the page reloaded after redirect_back from a turbo_stream request, in simple words:

  1. Submit a form (from the show action from the first controller) that goes with formats turbo_stream (Why formats turbo_stream? Because I need to render the errors back to the form if any)
  2. The request goes to the second controller to be processed and then in this controller we redirect_back
  3. The request is now back to the first controller and arrived as a turbo_stream request and there I render the show template as formats: :html
  4. I get the show view rendered and it loads the first time (which is good) and then it reloads it again for a second time (which is wrong)

Take a look here:

Image

The question is, how may I prevent the second loading to happen?

Thanks.

Activity

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

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