Skip to content

Commit

Permalink
Add account pages to global bar BlockList
Browse files Browse the repository at this point in the history
The Accounts team are moving the account homepage to the frontend app,
with the view of transitioning other parts of the account manager to
be rendered by frontend, as we retire the
govuk-account-manager-prototype app. Seeing as the frontend app uses
static, the global bar (currently Coronavirus bar) is automatically
added to the new /account/home page. The design for the account
manager excludes this additional bar currently.
This adds paths beginning with /account/ (assuming that any future
account-related pages will live under /account) to the urlBlockList
in the global bar script.
  • Loading branch information
danacotoran committed Jun 21, 2021
1 parent f5f3377 commit 3de8a3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/global-bar-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ var globalBarInit = {
'^/coronavirus/.*$',
'^/brexit(.cy)?$',
'^/transition-check/.*$',
'^/eubusiness(\\..*)?$'
'^/eubusiness(\\..*)?$',
'^/account/.*$'
]

var ctaLink = document.querySelector('.js-call-to-action')
Expand Down

0 comments on commit 3de8a3d

Please sign in to comment.