Hey there, hoping you’re having a good day. So, i’m starting with a dummy project to test out the behaviour of frames.
I’ve followed the docs on how to replace urls with turbo frames.
here is my first page
<%= turbo_frame_tag "content", class: "w-full flex justify-center items-center" do %>
<%= form_for @article, html: { class: "w-6/12" } do |f| %>
<%= f.label :body %>
<%= f.text_area :body, class: "resize-none w-full h-full" %>
<button data-turbo-action="advance" type="submit" class="bg-indigo-500 px-4 py-2 text-white rounded-full">
Confirm
</button>
<% end %>
<% end %>
And my second page layout
<%= turbo_frame_tag "content", class: "w-full flex justify-center items-center" do %>
<%= form_for @article, html: { class: "w-6/12" } do |f| %>
<%= f.label :title %>
<%= f.text_field :title, class: "resize-none w-full h-full mb-4" %>
<%= link_to "Back", new_article_path, data: { turbo_action: "advance"} %>
<button type="submit" class="bg-indigo-500 px-4 py-2 text-white rounded-full">
Set Title
</button>
<% end %>
<% end %>
Weird thing is, when pressing “Confirm” on the first page, the browser url is not updated.
When pressing confirm, the frames change successfully, but the url is not.
What makes this way more odd is that have a very similar setup with another project and everything is going fine.
Any idea why this might be happening?.
Thanks