processHtmlAsString function returns boolean in content support url embed module

Created on 5 September 2023, about 1 year ago
Updated 14 September 2023, about 1 year ago

Problem/Motivation

When using the content support url embed module you will not see a cookie notification if you have not accepted cookies, but a 1.

This is because the processHtmlAsString function returns a boolean and this boolean is then used in the content swap on line 84 replaceNodeContent function in the CsUrlEmbedFilter class.

Steps to reproduce

  1. Add a url embed field to a paragraph.
  2. Enter a link to a youtube video.
  3. Save and reject all cookies.
  4. A 1 is displayed.

Proposed resolution

Open for disscusion.

Remaining tasks

Decide on the approach and implement it.

User interface changes

The applicable message is displayed instead of a 1.

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium dtfabio Ninove

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

Comments & Activities

Production build 0.71.5 2024