Break out of a frame during form redirect

@adampal Adampal
Thu, 13 Nov 2025 23:53:53 +0000

For anyone coming here in 2025 - you can add a meta tag to the response element to force turbo to do a full page navigation.

I have this in my controller:

if @resource.save!
  redirect_to @resource, turbo_frame: :_top
else
  ...
end

Then in my layout I have this:

    <% if params[:turbo_frame] == "_top" %>

    <% end %>

There’s supposed to be a rails helper turbo_page_requires_reload that you can add to your view that does the same thing but I couldn’t get it to work but this was so simple I didn’t bother spending any time trying to get the helper working.