From 7c444dce4f067cbc606b261b43d10fb1bb63414b Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira + Diego Araujo Date: Wed, 19 Dec 2012 18:23:49 +0000 Subject: [PATCH] [Mezuro] Changed redirect to show repository instead of project --- plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb b/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb index daf235f..e7a341c 100644 --- a/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb +++ b/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb @@ -22,7 +22,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController if( repository.errors.empty? ) repository.process - redirect_to "/#{profile.identifier}/#{project_content.name.downcase.gsub(/\s/, '-')}" + redirect_to "/profile/#{profile.identifier}/plugin/mezuro/repository/show/#{project_content.id}?repository_id=#{project_content.id}" else redirect_to_error_page repository.errors[0].message end @@ -49,7 +49,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController repository.save(project_content.project_id) if( repository.errors.empty? ) - redirect_to "/#{profile.identifier}/#{project_content.name.downcase.gsub(/\s/, '-')}" + redirect_to "/profile/#{profile.identifier}/plugin/mezuro/repository/show/#{project_content.id}?repository_id=#{project_content.id}" else redirect_to_error_page repository.errors[0].message end -- libgit2 0.21.2