Cookie consent locale loads primary locale banner on all locales

Description

Secondary locale loads the cookie consent banner in the correct language, but also in the primary language. The primary locale banner isn’t functional when it appears on a secondary locale, so the buttons can be clicked, but the banner stays visible.

The consent banner works perfectly on the primary locale, this only happens on secondary locales.

Site URL

Steps to Reproduce

  1. Open site as new user / incognito
  2. Make sure site appears in English, if not, change language before interacting with cookie consent banner
  3. Accept/reject cookie consent
  4. Banner in English should disappear, and Finnish banner should be visible

Expected Behavior

The primary locale banner shouldn’t appear on secondary locales.

Actual Behavior

The primary locale banner appears on secondary locales even though the correct language banner also appears first.

Video/Screenshots

Primary locale consent banner behavior

New user visit - consent loads in correct language
User accepts or rejects consent
User views preferences - appears in correct language

Secondary locale consent banner behavior

New user visit - consent loads in correct language
User accepts or rejects consent, but primary locale banner appears when button is clicked
User views preferences - appears in correct language even though primary locale banner is still visible
Banner does not close when banner is in primary locale on a secondary locale page

Additional Context

Even though I keep turning off the Global Banner toggle and updating, it keeps coming back on. Is this a known bug? Is there a way to force it to disregard the Global Banner option?

Hey @sophie.michaud!
I took a look at the settings and it seems like the source is still set to:

source: "/fi/component-guide"

It might be that the app isn’t properly updating the settings :thinking:

Could you record a quick Loom showing you disabling the Global banner and updating the banner?

Feel free to DM it to me!