diff --git a/app/services/dashboard/recent_work_service.rb b/app/services/dashboard/recent_work_service.rb index 47af41568..54e959ba6 100644 --- a/app/services/dashboard/recent_work_service.rb +++ b/app/services/dashboard/recent_work_service.rb @@ -241,7 +241,7 @@ module Dashboard when 'Project' project_path(object_id) when 'Protocol' - edit_protocol_path(object_id) + protocol_path(object_id) when 'RepositoryBase' repository_path(object_id) when 'Report' diff --git a/app/views/protocols/index/_protocol_preview_modal_footer.html.erb b/app/views/protocols/index/_protocol_preview_modal_footer.html.erb index 36fcabba2..d9878e0ad 100644 --- a/app/views/protocols/index/_protocol_preview_modal_footer.html.erb +++ b/app/views/protocols/index/_protocol_preview_modal_footer.html.erb @@ -1,6 +1,6 @@ <% if can_manage_protocol_in_repository?(@protocol) %> - <%= route_to_other_team_btn edit_protocol_path(protocol), + <%= route_to_other_team_btn protocol_path(protocol), protocol.team, t('general.edit') %> <% end %> diff --git a/app/views/search/results/partials/_step_text.html.erb b/app/views/search/results/partials/_step_text.html.erb index 0a6bef2ab..c425968f8 100644 --- a/app/views/search/results/partials/_step_text.html.erb +++ b/app/views/search/results/partials/_step_text.html.erb @@ -13,7 +13,7 @@ text %> <% end %> <% elsif can_manage_protocol_in_repository?(step.protocol) %> - <%= route_to_other_team edit_protocol_path(step.protocol), + <%= route_to_other_team protocol_path(step.protocol), step.protocol.team, text %> <% else %>