From db72617b619dc13ef03ea16c1e95ccdfb9f9698e Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Tue, 18 May 2021 16:10:43 +0530 Subject: [PATCH] FIX: changed wizard id resolution logic --- extensions/extra_locales_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/extra_locales_controller.rb b/extensions/extra_locales_controller.rb index e7c5a02e..6242f7ca 100644 --- a/extensions/extra_locales_controller.rb +++ b/extensions/extra_locales_controller.rb @@ -4,7 +4,8 @@ module ExtraLocalesControllerCustomWizard super || begin return false unless bundle =~ /wizard/ && request.referer =~ /\/w\// path = URI(request.referer).path - wizard_id = path.split('/w/').last + wizard_path = path.split('/w/').last + wizard_id = wizard_path.split('/').first CustomWizard::Template.exists?(wizard_id.underscore) end end