Fix string literal when switching theme in dev env

Fix string literal when switching theme in dev env

diff --git a/app/controllers/themes_controller.rb b/app/controllers/themes_controller.rb
index 573f787..e13f880 100644
--- a/app/controllers/themes_controller.rb
+++ b/app/controllers/themes_controller.rb
@@ -18,6 +18,7 @@ class ThemesController < ::ApplicationController
         next hash unless Rails.env.development?
 
         dup_hash = hash.dup
+        dup_hash[:new_href] = dup_hash[:new_href].dup
         dup_hash[:new_href] << (dup_hash[:new_href].include?("?") ? "&" : "?")
         dup_hash[:new_href] << SecureRandom.hex
         dup_hash

GitHub sha: 607c6710

1 Like