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