Fix opening of activites for archived my_module [SCI-8887] (#5804)

This commit is contained in:
ajugo 2023-07-19 09:42:23 +02:00 committed by GitHub
parent 12dd66b6a6
commit f84de45cfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -88,7 +88,8 @@
</a>
</li>
<li role="presentation">
<a class="btn btn-light task-card-view-activities" href="<%= activities_my_module_url(id: my_module.id) %>" aria-controls="<%= my_module.id %>_activities" role="tab">
<a class="btn btn-light task-card-view-activities" href="<%= activities_my_module_url(id: my_module.id, view_mode: my_module.archived_branch? ? 'archived' : 'active') %>"
aria-controls="<%= my_module.id %>_activities" role="tab">
<span class="sn-icon sn-icon-activities" aria-hidden="true"></span>
</a>
</li>

View file

@ -37,7 +37,7 @@
<% end %>
</a>
<a class="p-4 border-b-4 border-transparent text-sn-grey hover:no-underline <%= "border-sn-blue" if is_module_activities? %>"
href="<%= activities_my_module_url(@my_module) %>"
href="<%= activities_my_module_url(@my_module, view_mode: params[:view_mode]) %>"
title="<%= t("nav2.modules.activities") %>"
>
<%= t("nav2.modules.activities") %>