Merge pull request #3153 from aignatov-bio/ai-sci-5479-fix-experimnet-archive-page-route

Fix experiment archive page route [SCI-5479]
This commit is contained in:
aignatov-bio 2021-02-12 09:58:42 +01:00 committed by GitHub
commit d46057d39b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
<% if record[:project] %>
<li class="sidebar-leaf">
<% if record[:project].archived? %>
<%= link_to record[:project].name, experiment_archive_project_url(record[:project]), class: 'sidebar-link' %>
<%= link_to record[:project].name, project_url(record[:project], view_mode: :archived), class: 'sidebar-link' %>
<% else %>
<%= link_to record[:project].name, project_url(record[:project]), class: 'sidebar-link' %>
<% end %>