# Turbo Frame Redirect and Render

**URL:** <https://discuss.hotwired.dev/t/turbo-frame-redirect-and-render/6400>\
**Category:** General\
**Created:** [October 13, 2025, 4:42pm UTC](https://discuss.hotwired.dev/t/turbo-frame-redirect-and-render/6400 "2025-10-13T16:42:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![clap](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@clap](https://discuss.hotwired.dev/u/clap)\
**Post date:** [October 14, 2025, 8:37pm UTC](https://discuss.hotwired.dev/t/turbo-frame-redirect-and-render/6400/2 "2025-10-14T20:37:09Z")

</div>

Just solved this. Solid information [Reload page with turbo frame after modal form submit](https://discuss.hotwired.dev/t/reload-page-with-turbo-frame-after-modal-form-submit/5135) and [Ability to override frame-target from server response · Issue #257 · hotwired/turbo · GitHub](https://github.com/hotwired/turbo/issues/257)

I wrapped my form inside another turbo-frame and I just created a custom Turbo Stream Action.

```auto
# frozen_string_literal: true

module TurboStreamActionsHelper
  def force_redirect(path)
    turbo_stream_action_tag :force_redirect, path: path
  end
end

Turbo::Streams::TagBuilder.prepend(TurboStreamActionsHelper)

```

then

create.turbo\_stream.erb

```auto
<% if @valid_store %>
  <%= turbo_stream.force_redirect(edit_admin_store_path(@store)) %>
<% else %>
  <%= turbo_stream.replace "store_form" do %>
    <%= render "admin/stores/form", store: @store %>
  <% end %>
<% end %>

```

Hope it helps you.

---

_[View the full topic](https://discuss.hotwired.dev/t/turbo-frame-redirect-and-render/6400)._
