Shopify's cookie banner "Privacy policy" link is broken

Topic summary

Shopify’s cookie banner experienced a critical bug where the “Privacy policy” link pointed to “null” instead of the configured URL, resulting in 404 errors.

Key Details:

  • The issue only affected live banners; preview mode displayed correctly
  • Multiple stores were impacted
  • Broken links appeared as URLs with trailing ‘/null’
  • Configuration object appeared malformed, with incorrect values and translation issues

Workarounds Considered:

  • Custom JavaScript to wait for banner appearance then rewrite href
  • Using MutationObserver
  • Hiding the link via CSS

Resolution:
Shopify confirmed and fixed the issue after several days. Multiple users verified the cookie banner privacy policy links now work correctly across their stores.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Since some time last week, Shopify’s cookie banner “Privacy policy” link is broken – instead of linking to the URL specified in “Customer privacy” → “Cookie banner” → “Customize” → “Privacy policy URL”, it links to “null” (and that just goes to 404 page obviously).

Previewing the banner from settings (clicking on “View” button) does not exhibit the issue (links correctly to the specified URL), only live banner is affected.

It seems that not only our stores are affected, I saw some other stores with the same issue, but don’t know if all stores are affected.

Raised an issue with Shopify but it’s been days and they are still investigating.

I can only think of clunky workarounds – setup some custom javascript to wait N amount till hopefully cookie banner appears and then rewrite its href (or use MutationObserver?), or just plain hide the link in CSS. Let me know if I’m missing something obvious.

2 Likes

I can confirm it. We also have implemented the core cookie banner. Was running just fine. Since two days we get warnings that broken links are on the Site: Several subpages urls but with a trailing ‘/null’. It took me some minutes to understand, that the cookie-banner was the issue.

The Link text is also not translated correctly. It shows the default ‘english’ translation and a broken link with /null.
It seems, that the value is already not correct when the cooke-configuration object is put together:

resolvr_0-1719875193316.png

1 Like

Issue has now been fixed I believe.

2 Likes

Yes, looks good here too. Link is now working on multiple stores.

2 Likes

Can also confirm, it is fixed now. Time to remove my hotfix :sweat_smile:

2 Likes