Skip to content

Commit d5a5f27

Browse files
justin808claude
andcommitted
Fix Turbo navigation by updating to Turbo-compatible script tag
Changed from deprecated 'data-turbolinks-track' to modern 'data-turbo-track' attribute with 'reload' value. Also explicitly added defer: true for clarity. This fixes Turbo navigation issues in the dummy app. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1a84b4a commit d5a5f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/dummy/app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<%= yield :head %>
1111

1212
<!-- NOTE: Must use defer and not async to keep async scripts loading in correct order -->
13-
<%= javascript_pack_tag('client-bundle', 'data-turbolinks-track': true) %>
13+
<%= javascript_pack_tag('client-bundle', 'data-turbo-track': 'reload', defer: true) %>
1414

1515
<%= csrf_meta_tags %>
1616
</head>

0 commit comments

Comments
 (0)