When using the filter altis.consent.always_allow_categories to set the default category and having only the functional category enabled the consent banner still displays when the only allowed consent category is functional. Once a second category is enabled the banner is then hidden.
To replicate
Use the following filter to make the functional category the only allowed by default:
Don't forget you can close this one out now, I often add a comment to the related PR like Fixes #123 so when the PR is merged the issue is closed automatically
Issue/ Bug
When using the filter
altis.consent.always_allow_categories
to set the default category and having only thefunctional
category enabled the consent banner still displays when the only allowed consent category isfunctional
. Once a second category is enabled the banner is then hidden.To replicate
Use the following filter to make the
functional
category the only allowed by default:View the site so the cookie banner displays, select Cookie Preferences.
Ensure only
functional
is selected and then save/ apply changes.Reload the page and the banner should still display. ( although it shouldn't )
Expectation
When removing
statistics-anonymous
from the allowed categories and accepting onlyfunctional
cookies, the banner should remain hidden.