From 0bd29a1bc69b9e7f5edb7f60d001fa47ce76b9e5 Mon Sep 17 00:00:00 2001 From: Alex J Date: Mon, 13 Sep 2021 12:18:13 +0100 Subject: [PATCH] Remove government-navigation This element is not required in the new layout as the header navigation is now embedded in the public layout. --- app/helpers/application_helper.rb | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 274bdd3473..1134f610ba 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -17,25 +17,7 @@ def wrapper_class "direction-#{page_text_direction}" if page_text_direction end - def active_proposition - # Which of the government sections is the page part of? - # Derive this from the request path, eg: /government/consultations => consultations - active = request.original_fullpath.split("/")[2] - active_proposition_mapping.fetch(active, active) - end - def current_path_without_query_string request.original_fullpath.split("?", 2).first end - -private - - def active_proposition_mapping - # Some paths don't map directly to the position nav - # eg /government/news sits under 'announcements' - { - "news" => "announcements", - "fatalities" => "announcements", - } - end end