diff --git a/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js b/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js index fc56e3f12d..3c779a14c9 100644 --- a/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +++ b/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js @@ -21,8 +21,6 @@ return document.querySelectorAll('[data-track-count="cardList"]').length case isMainstreamBrowsePage(): return countVisible(document.querySelectorAll('#subsection ul')) || document.querySelectorAll('#section ul').length || document.querySelectorAll('#root ul').length - case isTopicPage(): - return document.querySelectorAll('.topics-page nav.index-list').length case isPolicyAreaPage(): return document.querySelectorAll('.topic section h1.label').length case isFinderPage(): @@ -56,9 +54,6 @@ return document.querySelectorAll('[data-track-count="cardLink"]').length case isMainstreamBrowsePage(): return countVisible(document.querySelectorAll('#subsection ul a')) || document.querySelectorAll('#section ul a').length || document.querySelectorAll('#root ul a').length - case isTopicPage(): - return document.querySelectorAll('.topics-page .index-list ul a').length || - document.querySelectorAll('.topics-page .topics ul a').length case isPolicyAreaPage(): return document.querySelectorAll('section.document-block a').length + document.querySelectorAll('section .collection-list h2 a').length @@ -120,11 +115,6 @@ getMetaAttribute(metaFormatSelector) === 'mainstream_browse_page' } - function isTopicPage () { - return getMetaAttribute(metaApplicationSelector) === 'collections' && - getMetaAttribute(metaFormatSelector) === 'topic' - } - function isPolicyAreaPage () { return getMetaAttribute(metaApplicationSelector) === 'whitehall' && getMetaAttribute(metaFormatSelector) === 'placeholder_policy_area' diff --git a/app/views/govuk_publishing_components/components/docs/related_navigation.yml b/app/views/govuk_publishing_components/components/docs/related_navigation.yml index 804d78d93a..1155c15219 100644 --- a/app/views/govuk_publishing_components/components/docs/related_navigation.yml +++ b/app/views/govuk_publishing_components/components/docs/related_navigation.yml @@ -19,20 +19,6 @@ examples: base_path: /training-study-work-your-rights - title: Careers helpline for teenagers base_path: /careers-helpline-for-teenagers - with_curated_topics: - data: - content_item: - links: - topics: - - title: Apprenticeships, 14 to 19 education and training for work - base_path: /browse/education/find-course - document_type: topic - - title: Finding a job - base_path: /browse/working/finding-job - document_type: topic - - title: Apprenticeships - base_path: /topic/further-education-skills/apprenticeships - document_type: topic with_mainstream_browse_pages: data: content_item: @@ -53,43 +39,6 @@ examples: base_path: /transport/driving-instruction-and-driving-lessons phase: live document_type: taxon - with_curated_topics_and_mainstream_browse_pages: - description: Currated topics and mainstream browse pages are combined. - data: - content_item: - links: - mainstream_browse_pages: - - title: Driving licences - base_path: /browse/driving/driving-licences - document_type: mainstream_browse_page - - title: Driving tests and learning to drive or ride - base_path: /browse/driving/learning-to-drive - document_type: mainstream_browse_page - topics: - - title: Cars - base_path: /topic/driving-tests-and-learning-to-drive/car - document_type: topic - with_curated_topics_and_mainstream_browse_pages_and_taxons: - description: Currated topics and mainstream browse pages take precedence over the sidewide topic taxonomy. - data: - content_item: - links: - mainstream_browse_pages: - - title: Driving licences - base_path: /browse/driving/driving-licences - document_type: mainstream_browse_page - - title: Driving tests and learning to drive or ride - base_path: /browse/driving/learning-to-drive - document_type: mainstream_browse_page - taxons: - - title: Driving instruction and driving lessons - base_path: /transport/driving-instruction-and-driving-lessons - phase: live - document_type: taxon - topics: - - title: Cars - base_path: /topic/driving-tests-and-learning-to-drive/car - document_type: topic with_collections: data: content_item: @@ -218,11 +167,6 @@ examples: - title: Find an apprenticeship (French) base_path: /apply-apprenticeship.fr locale: fr - topics: - - title: Apprenticeships, 14 to 19 education and training for work (Korean) - base_path: /browse/education/find-course.ko - document_type: topic - locale: ko topical_events: - title: UK-China High-Level People to People Dialogue 2017 (Spanish) base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017.es @@ -263,16 +207,6 @@ examples: base_path: /training-study-work-your-rights - title: Careers helpline for teenagers base_path: /careers-helpline-for-teenagers - topics: - - title: Apprenticeships, 14 to 19 education and training for work - base_path: /browse/education/find-course - document_type: topic - - title: Finding a job - base_path: /browse/working/finding-job - document_type: topic - - title: Apprenticeships - base_path: /topic/further-education-skills/apprenticeships - document_type: topic topical_events: - title: UK-China High-Level People to People Dialogue 2017 base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017 @@ -319,16 +253,6 @@ examples: base_path: /training-study-work-your-rights - title: Careers helpline for teenagers base_path: /careers-helpline-for-teenagers - topics: - - title: Apprenticeships, 14 to 19 education and training for work - base_path: /browse/education/find-course - document_type: topic - - title: Finding a job - base_path: /browse/working/finding-job - document_type: topic - - title: Apprenticeships - base_path: /topic/further-education-skills/apprenticeships - document_type: topic topical_events: - title: UK-China High-Level People to People Dialogue 2017 base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017