From 5694cfe3d096244254ae15c56ffdec0e68ecb78b Mon Sep 17 00:00:00 2001 From: ajugo Date: Fri, 2 Jun 2023 17:16:39 +0200 Subject: [PATCH] Fix task name rendering on experiment view [SCI-8604] (#5551) --- app/services/experiments/table_view_service.rb | 2 +- app/views/canvas/full_zoom/_my_module.html.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/services/experiments/table_view_service.rb b/app/services/experiments/table_view_service.rb index 46600c592..a7780061b 100644 --- a/app/services/experiments/table_view_service.rb +++ b/app/services/experiments/table_view_service.rb @@ -111,7 +111,7 @@ module Experiments id: my_module.id, name: escape_input(my_module.name), provisioning_status: my_module.provisioning_status, - url: protocols_my_module_path(my_module) + url: protocols_my_module_path(my_module, view_mode: my_module.archived_branch? ? 'archived' : 'active') } end diff --git a/app/views/canvas/full_zoom/_my_module.html.erb b/app/views/canvas/full_zoom/_my_module.html.erb index 10f5e9992..173cb426c 100644 --- a/app/views/canvas/full_zoom/_my_module.html.erb +++ b/app/views/canvas/full_zoom/_my_module.html.erb @@ -35,7 +35,9 @@

- <%= link_to my_module.name, protocols_my_module_path(my_module), title: my_module.name, class: 'my-module-title' %> + <%= link_to my_module.name, protocols_my_module_path(my_module, + view_mode: my_module.archived_branch? ? 'archived' : 'active'), + title: my_module.name, class: 'my-module-title' %>