Subscriber tokens not working when using Token Filter module

Created on 22 September 2023, about 1 year ago

Problem/Motivation

The Token Filter module provides a filter which replaces global and entity tokens with their values. It makes it possible to use [site:name] in a CKEditor field for example. When this module and filter are enabled, the subscriber tokens in a newsletter are not working anymore (they are replaced, but without a value). When disabling the "Replaces global and entity tokens with their values" filter from the Token Filter module, the subscriber tokens are working correctly, but tokens on other nodes (not newsletters) are not working anymore.

Steps to reproduce

  1. Setup a normal installation of simplenews with token replacement enabled
  2. Create a newsletter (with a CKEditor field) with at least one subscriber token (and maybe one like [site:name])
  3. Confirm it is working and the token got replaced with the correct value
  4. Install the Token Filter module
  5. Enable the "Replaces global and entity tokens with their values" filter on the CKEditor profile
  6. Resend the mail from step 3 and confirm the subscriber token is now replaced with an empty value (and the [site:name] token is still working)

Proposed resolution

I don't have a solution at the moment. A temporary workaround is creating a new CKEditor profile for newsletters only and disable the "Replaces global and entity tokens with their values" filter in this one.

Remaining tasks

Investigate why subscriber tokens are not replaced.

🐛 Bug report
Status

Active

Version

4.0

Component

Usability

Created by

🇳🇱Netherlands Ewout Goosmann

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

Comments & Activities

Production build 0.71.5 2024