From b1308b46ccf10db693481c93ccdfca7b73e55b2f Mon Sep 17 00:00:00 2001
From: Sascha Karnatz <122262394+sascha-karnatz@users.noreply.github.com>
Date: Thu, 27 Jun 2024 12:27:53 +0200
Subject: [PATCH] Disable Turbo Prefetch in Admin
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.
(cherry picked from commit 090f56d16423b78fe8d699988e6d6f42d3ef8cfd)
# Conflicts:
# app/views/layouts/alchemy/admin.html.erb
---
app/views/layouts/alchemy/admin.html.erb | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/views/layouts/alchemy/admin.html.erb b/app/views/layouts/alchemy/admin.html.erb
index 5cb2ab7fbc..d9a5b1191b 100644
--- a/app/views/layouts/alchemy/admin.html.erb
+++ b/app/views/layouts/alchemy/admin.html.erb
@@ -8,6 +8,7 @@
<%= csrf_meta_tag %>
">
+
<%= stylesheet_link_tag('alchemy/admin/all', media: 'screen', 'data-turbo-track' => true) %>
<%= stylesheet_link_tag('alchemy/print', media: 'print', 'data-turbo-track' => true) %>
<%= yield :stylesheets %>