What's your biggest current challenge? Have your say in Community Polls along the right column.

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

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

rossvor
Excursionist
17 0 11

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 <a> link in CSS. Let me know if I'm missing something obvious.

Replies 4 (4)

resolvr
Shopify Partner
2 0 3

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

 

 

rossvor
Excursionist
17 0 11

Issue has now been fixed I believe.

Martin_ST
Shopify Partner
1 0 2

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

resolvr
Shopify Partner
2 0 3

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