From 43b6be575d670ffc74a499775c0906abff9159a6 Mon Sep 17 00:00:00 2001 From: taitus Date: Wed, 10 Feb 2021 18:54:43 +0100 Subject: [PATCH] Avoid SDG subnavigation link as active when visit help page This help page can only be accessed from either the help page or the forms. There is no button in the navigation bar related to this page. For this reason we do not mark any section of the navigation bar as active when we are on this page.. --- app/views/shared/_subnavigation.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_subnavigation.html.erb b/app/views/shared/_subnavigation.html.erb index 4a393e50a..463122a8c 100644 --- a/app/views/shared/_subnavigation.html.erb +++ b/app/views/shared/_subnavigation.html.erb @@ -46,7 +46,7 @@
  • <%= layout_menu_link_to t("layouts.header.sdg"), sdg_goals_path, - controller_path.split("/").first == "sdg", + controller_path == "sdg/goals" && action_name != "help", accesskey: "6" %>
  • <% end %>