From a980a0860485a68013641c1b4effc7180ceb5715 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Thu, 18 Jan 2024 16:48:39 +0100 Subject: [PATCH] Theme selection for Solidus Admin: Use spree routing proxy This is the same problem and solution as #5599, just for the theme selection partial that is used when using the current admin (rather than the new one). --- .../admin/shared/_theme_selection_solidus_admin.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/views/spree/admin/shared/_theme_selection_solidus_admin.html.erb b/backend/app/views/spree/admin/shared/_theme_selection_solidus_admin.html.erb index d2309396d41..de8531c9277 100644 --- a/backend/app/views/spree/admin/shared/_theme_selection_solidus_admin.html.erb +++ b/backend/app/views/spree/admin/shared/_theme_selection_solidus_admin.html.erb @@ -1,7 +1,7 @@ <% theme_options_for_select = Spree::Backend::Config.themes.keys.map { |theme| [theme.to_s.humanize, theme] }.sort %>
  • - <%= form_tag(admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %> + <%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %> <%= hidden_field_tag :system_theme, :light %> <% end %> - <%= form_tag(admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %> + <%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %> <%= hidden_field_tag :system_theme, :dark %>