diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 3e5910363..62bc5e4a3 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -9,6 +9,11 @@ <% unless request.get? && !form_request? # prevent turbo for caching form redisplays, which will often contain validation messages %> <% end %> + <%= turbo_refreshes_with(method: :morph, scroll: :preserve) %> + <%= yield :head %> + <% if flash.key? :highlight %> + "> + <% end %> <%= javascript_include_tag "application", "data-turbo-track": "reload" %> <%= stylesheet_link_tag "application", media: "all", "data-turbo-track": "reload" %>