From de63ee3628bd3f546b9aa4a56f397440ea6290ef Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira Date: Thu, 13 Sep 2012 17:03:25 -0300 Subject: [PATCH] [Mezuro] Fixed redirection after metric_configuration creation --- plugins/mezuro/controllers/myprofile/mezuro_plugin_metric_configuration_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/controllers/myprofile/mezuro_plugin_metric_configuration_controller.rb b/plugins/mezuro/controllers/myprofile/mezuro_plugin_metric_configuration_controller.rb index 3b336aa..df8ab3d 100644 --- a/plugins/mezuro/controllers/myprofile/mezuro_plugin_metric_configuration_controller.rb +++ b/plugins/mezuro/controllers/myprofile/mezuro_plugin_metric_configuration_controller.rb @@ -36,7 +36,7 @@ class MezuroPluginMetricConfigurationController < MezuroPluginMyprofileControlle if metric_configuration_has_errors? metric_configuration redirect_to_error_page metric_configuration.errors[0].message else - redirect_to "edit_metric_configuration?id=#{id}&metric_name=#{metric_name.gsub(/\s/, '+')}" + redirect_to "/myprofile/#{profile.identifier}/plugin/mezuro/metric_configuration/edit_metric_configuration?id=#{id}&metric_name=#{metric_name.gsub(/\s/, '+')}" end end @@ -48,7 +48,7 @@ class MezuroPluginMetricConfigurationController < MezuroPluginMyprofileControlle if metric_configuration_has_errors? metric_configuration redirect_to_error_page metric_configuration.errors[0].message else - redirect_to "edit_compound_metric_configuration?id=#{id}&metric_name=#{metric_name.gsub(/\s/, '+')}" + redirect_to "/myprofile/#{profile.identifier}/plugin/mezuro/metric_configuration/edit_compound_metric_configuration?id=#{id}&metric_name=#{metric_name.gsub(/\s/, '+')}" end end -- libgit2 0.21.2