Skip to content

A platform for community discussion. Free, open, simple.

Fix string literal when switching theme in dev env

Penar Musaraj607c67100328
diff --git a/app/controllers/themes_controller.rb b/app/controllers/themes_controller.rb
index 573f787bb2e..e13f880b05c 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