Skip to content

Commit

Permalink
Merge pull request #2017 from alphagov/stop-global-banner-on-transition
Browse files Browse the repository at this point in the history
Update global banner path blacklist (Transition pages)
  • Loading branch information
huwd authored Jan 29, 2020
2 parents 5d11a05 + 547b6af commit 37a23ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/analytics/scroll-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
window.GOVUK = window.GOVUK || {};

var CONFIG = {
'/brexit': [
'/transition': [
['Percent', 20],
['Percent', 40],
['Percent', 60],
Expand Down
7 changes: 6 additions & 1 deletion app/assets/javascripts/global-bar-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ var globalBarInit = {
},

blacklistedUrl: function() {
var paths = ["/register-to-vote", "/done", "/brexit", "/get-ready-brexit-check"]
var paths = [
"/register-to-vote",
"/done",
"/transition",
"/transition-check"
]

return new RegExp(paths.join("|")).test(window.location.pathname)
},
Expand Down

0 comments on commit 37a23ec

Please sign in to comment.