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..
This commit is contained in:
taitus
2021-02-10 18:54:43 +01:00
parent d26607183e
commit 43b6be575d

View File

@@ -46,7 +46,7 @@
<li>
<%= 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" %>
</li>
<% end %>