Aggregation of klaro may cause issues depending on markup of page

Created on 28 November 2023, about 1 year ago
Updated 1 December 2023, about 1 year ago

Problem/Motivation

Looks like certain markup causes issues with the klaro library when the JS of that library is aggregated in Drupal. I've seen this with an SVG that had embedded script tags in Drupal 10.1, but looks like it also happens on Drupal 7 in some cases. Ideally that would be fixed in the upstream library, but we can workaround it by disabling preprocessing for the klaro js in libraries.yml.

Related upstream issue: https://github.com/klaro-org/privacy-manager/issues/273

Steps to reproduce

Among (probably) other cases, embed an SVG with script tags and enable JS aggregation in Drupal 10.1.

Proposed resolution

Disable preprocessing of klaro library.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany FeyP

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024