File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,14 @@ def load_content_item
66
66
def load_taxonomy_navigation
67
67
if @content_item . taxons . present?
68
68
taxons = @content_item . taxons . select { |taxon | taxon [ "phase" ] == "live" }
69
+ current_base_path = @content_item . base_path
69
70
70
71
taxon_ids = taxons . map { |taxon | taxon [ "content_id" ] }
71
- services = Supergroups ::Services . new ( content_item_path , taxon_ids )
72
- guidance_and_regulation = Supergroups ::GuidanceAndRegulation . new ( content_item_path , taxon_ids )
73
- news = Supergroups ::NewsAndCommunications . new ( content_item_path , taxon_ids )
74
- policy_and_engagement = Supergroups ::PolicyAndEngagement . new ( content_item_path , taxon_ids )
75
- transparency = Supergroups ::Transparency . new ( content_item_path , taxon_ids )
72
+ services = Supergroups ::Services . new ( current_base_path , taxon_ids )
73
+ guidance_and_regulation = Supergroups ::GuidanceAndRegulation . new ( current_base_path , taxon_ids )
74
+ news = Supergroups ::NewsAndCommunications . new ( current_base_path , taxon_ids )
75
+ policy_and_engagement = Supergroups ::PolicyAndEngagement . new ( current_base_path , taxon_ids )
76
+ transparency = Supergroups ::Transparency . new ( current_base_path , taxon_ids )
76
77
77
78
@taxonomy_navigation = {
78
79
services : ( services . all_services if services . any_services? ) ,
You can’t perform that action at this time.
0 commit comments