static
static copied to clipboard
Banner 'hide message' does not work if opted out from tracking.
Steps to reproduce:
- Go to https://www.gov.uk/help/cookies
- Set all options to 'off'
- Submit
- Press 'hide message' in banner
Expected
Banner to not appear again, or banner not to be there in the first place
Actual
Banner does not hide between page navigations.
This might impact other banner like things like surveys too.
https://github.com/alphagov/static/blob/7eda1a63403a9dab899bc8340fa4418dde08f88f/app/assets/javascripts/global-bar-init.js#L89