Closed (outdated)
Project:
Content Moderation Notifications
Version:
8.x-3.3
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 May 2022 at 20:56 UTC
Updated:
27 Aug 2025 at 13:28 UTC
Jump to comment: Most recent

Comments
Comment #2
danielmme commentedComment #3
danielmme commentedComment #4
ryankavalsky commentedJust in case anybody stumbles on this issue again, I solved this by updating the text format's configuration:
It looks like when check_markup() is called in \Drupal\content_moderation_notifications\Notification::sendNotification(), the markup is cleaned up based on the Text Format's rules. This function ends up replacing more generic tokens (e.g. [current-page:xxx]), but would strip away the node-based tokens since check_markup() isn't aware of the node's context.
Un-checking "Replace empty values" gives $token_service->replace() a chance to replace the node-based tokens when building the email message when the module calls hook_mail().