Commit 7c444dce4f067cbc606b261b43d10fb1bb63414b
Committed by
Alessandro Palmeira
1 parent
34e249fa
Exists in
staging
and in
42 other branches
[Mezuro] Changed redirect to show repository instead of project
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb
| @@ -22,7 +22,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController | @@ -22,7 +22,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController | ||
| 22 | 22 | ||
| 23 | if( repository.errors.empty? ) | 23 | if( repository.errors.empty? ) |
| 24 | repository.process | 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 | else | 26 | else |
| 27 | redirect_to_error_page repository.errors[0].message | 27 | redirect_to_error_page repository.errors[0].message |
| 28 | end | 28 | end |
| @@ -49,7 +49,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController | @@ -49,7 +49,7 @@ class MezuroPluginRepositoryController < MezuroPluginProfileController | ||
| 49 | repository.save(project_content.project_id) | 49 | repository.save(project_content.project_id) |
| 50 | 50 | ||
| 51 | if( repository.errors.empty? ) | 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 | else | 53 | else |
| 54 | redirect_to_error_page repository.errors[0].message | 54 | redirect_to_error_page repository.errors[0].message |
| 55 | end | 55 | end |