Skip to content

JSON format in alert body is unintentionally escaped and broken when using alert template macro #7310

@takanau

Description

@takanau

Issue Summary

When using alert template macro (ex: {{QUERY_RESULT_ROWS}}, cf) in alert body, the result is HTML escaped and its JSON format is broken like this:

[{'column': 1}]

Steps to Reproduce

When rendering alert template, mustache_render should be used, not mustache_render_escape.

Technical details:

  • Redash Version: 24.12.0-dev

I guess this problem caused by #5996 (Version: 23.09.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions