Commit 7c444dce4f067cbc606b261b43d10fb1bb63414b

Authored by Alessandro Palmeira + Diego Araujo
Committed by Alessandro Palmeira
1 parent 34e249fa

[Mezuro] Changed redirect to show repository instead of project

plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb
... ... @@ -22,7 +22,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController
22 22  
23 23 if( repository.errors.empty? )
24 24 repository.process
25   - redirect_to "/#{profile.identifier}/#{project_content.name.downcase.gsub(/\s/, '-')}"
  25 + redirect_to "/profile/#{profile.identifier}/plugin/mezuro/repository/show/#{project_content.id}?repository_id=#{project_content.id}"
26 26 else
27 27 redirect_to_error_page repository.errors[0].message
28 28 end
... ... @@ -49,7 +49,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController
49 49 repository.save(project_content.project_id)
50 50  
51 51 if( repository.errors.empty? )
52   - redirect_to "/#{profile.identifier}/#{project_content.name.downcase.gsub(/\s/, '-')}"
  52 + redirect_to "/profile/#{profile.identifier}/plugin/mezuro/repository/show/#{project_content.id}?repository_id=#{project_content.id}"
53 53 else
54 54 redirect_to_error_page repository.errors[0].message
55 55 end
... ...