Agrees with this solution. I’m using same. The most annoying part is that I have to write turbo_stream.replace
. WTF? why Turbo then?! I’ve been using same technique with jQuery. Why then I need Turbo . I hope it will be changed in future Turbo versions.
1 Like
Is this still a problem in the current version of Turbo? I’m running into this same issue. I want to re-render within the turbo frame except for when I want to break out and redirect. Setting the container frame target to _top doesn’t work because it applies to every request. I was thinking it would be nice if I could change/specify the turbo frame in the response header, or something like this:
redirect_to users_path, status: :see_other, turbo_frame: "_top"
Is something like this possible?
1 Like
This functionality is now available through turbo:frame-missing
event.
See the 2 comments here at the end: