Skip to content

Commit

Permalink
Disable Turbo Prefetch in Admin
Browse files Browse the repository at this point in the history
This feature was enabled by default in Turbo 8 and can cause that the page tabs are opening, if the user is hovering over page entries in page tree. It then looks like the admin is broken, because the user has open tabs that the user never intend to open.
  • Loading branch information
sascha-karnatz committed Jun 27, 2024
1 parent 4774203 commit 090f56d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/layouts/alchemy/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<%= csrf_meta_tag %>
<meta name="robots" content="noindex">
<meta name="alchemy-icon-sprite" content="<%= asset_path("remixicon.symbol.svg") %>">
<meta name="turbo-prefetch" content="false">
<%= stylesheet_link_tag('alchemy/admin', media: 'screen', 'data-turbo-track' => true) %>
<%= stylesheet_link_tag('alchemy/admin/print', media: 'print', 'data-turbo-track' => true) %>
<%= yield :stylesheets %>
Expand Down

0 comments on commit 090f56d

Please sign in to comment.