Cookie content blocker seems to break Gin theme when viewed from public theme

Created on 20 March 2023, over 1 year ago
Updated 22 March 2023, over 1 year ago

Problem/Motivation

We have a custom default theme and Gin admin theme installed on our site.

When I enable the Cookie content blocker module it seems to break the admin toolbar in the left side panel when viewing the site in the public theme with Gin sidebar.

For example the cache clear button breaks.

The HTML gets mangled:

<a href="/en/admin/flush?token=<script data-cookie-content-blocker-asset-id=" 21okfa3npvfdzw9yyeghbcr9wcrv2gekwzskcqlyxtw"="" data-categories="[&quot;functional&quot;]">
<script type="application/json" data-drupal-selector="drupal-settings-json">{"cookieContentBlocker":{"blockedAssets":{"grc3fvdezuq6f0z8vmlhueceagjedy4rtv68zpxagk4":"\u003Clink rel=\u0022stylesheet\u0022 media=\u0022all\u0022 href=\u0022\/core\/themes\/stable\/css\/media\/oembed.formatter.css?rrt6xc\u0022 \/\u003E\n","21okfa3npvfdzw9yyeghbcr9wcrv2gekwzskcqlyxtw":"\u003Clink rel=\u0022stylesheet\u0022 media=\u0022all\u0022 href=\u0022\/core\/themes\/stable\/css\/media\/oembed.formatter.css?rrt6xc\u0022 \/\u003E\n"},"consentAwareness":{"accepted":{"event":{"name":"","selector":""},"cookie":{"operator":"","name":"","value":""}},"declined":{"event":{"name":"","selector":""},"cookie":{"operator":"","name":"","value":""}},"change":{"event":{"name":"","selector":""}}},"categories":{"functional":{"consentAwareness":{"accepted":{"event":{"name":"","selector":""},"cookie":{"operator":"===","name":"","value":"true"}},"declined":{"event":{"name":"","selector":""},"cookie":
🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇫🇮Finland heikkiy Oulu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024