From 3de8a3d1df5a43910d6a3729f2937ddc9c9b1537 Mon Sep 17 00:00:00 2001 From: Dana Cotoran Date: Mon, 21 Jun 2021 17:04:38 +0100 Subject: [PATCH] Add account pages to global bar BlockList 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. --- app/assets/javascripts/global-bar-init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/global-bar-init.js b/app/assets/javascripts/global-bar-init.js index 3b9604d12..01faf15a7 100644 --- a/app/assets/javascripts/global-bar-init.js +++ b/app/assets/javascripts/global-bar-init.js @@ -30,7 +30,8 @@ var globalBarInit = { '^/coronavirus/.*$', '^/brexit(.cy)?$', '^/transition-check/.*$', - '^/eubusiness(\\..*)?$' + '^/eubusiness(\\..*)?$', + '^/account/.*$' ] var ctaLink = document.querySelector('.js-call-to-action')