Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
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:
Issue has now been fixed I believe.
Yes, looks good here too. Link is now working on multiple stores.
Can also confirm, it is fixed now. Time to remove my hotfix 😅
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024