From f02610692304d0fba08125ccf9c30137fd81af0a Mon Sep 17 00:00:00 2001
From: Graham Lewis <44037625+gclssvglx@users.noreply.github.com>
Date: Thu, 26 May 2022 12:18:09 +0100
Subject: [PATCH 1/2] Add additional detailed guide page scroll tracking
---
app/views/content_items/detailed_guide.html.erb | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/views/content_items/detailed_guide.html.erb b/app/views/content_items/detailed_guide.html.erb
index be495fead..3d8b35f7b 100644
--- a/app/views/content_items/detailed_guide.html.erb
+++ b/app/views/content_items/detailed_guide.html.erb
@@ -17,6 +17,7 @@
"/guidance/brexit-guidance-for-businesses",
"/guidance/brexit-guidance-for-individuals-and-families",
"/guidance/import-and-export-goods-using-preference-agreements",
+ "/guidance/financial-evidence-for-sponsored-or-endorsed-work-routes",
]
%>
<% if scroll_track_headings_paths.include?(@content_item.base_path) %>
From c3d501ecbae65474e6b98de4779bf32496f7eaa9 Mon Sep 17 00:00:00 2001
From: Graham Lewis <44037625+gclssvglx@users.noreply.github.com>
Date: Thu, 26 May 2022 12:18:37 +0100
Subject: [PATCH 2/2] Add additional guide page scroll tracking
---
app/views/content_items/guide.html.erb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/app/views/content_items/guide.html.erb b/app/views/content_items/guide.html.erb
index 2ffd3193e..aeabf3575 100644
--- a/app/views/content_items/guide.html.erb
+++ b/app/views/content_items/guide.html.erb
@@ -14,10 +14,18 @@
"/taking-goods-out-uk-temporarily/get-an-ata-carnet",
]
+ scroll_track_percent_paths = [
+ "/skilled-worker-visa",
+ "/skilled-worker-visa/documents-you-must-provide",
+ "/apply-to-come-to-the-uk",
+ ]
+
full_url = [@content_item.base_path, @content_item.part_slug].compact.join('/')
%>
<% if scroll_track_headings_paths.include?(full_url) %>
+ <% elsif scroll_track_percent_paths.include?(@content_item.base_path) %>
+
<% end %>
<% end %>