Skip to content

Building a dynamic URL string inside a Report Rule's email text (for example a link containing query parameters like `?invoice_number=CD1234&amount=200`) silently drops everything after any `=` or `&` character — quoting the string in single or double quotes doesn't help. What's the fix?

Answer

URL-encode the = and & characters within the string being constructed — use %3D in place of a literal = and %26 in place of a literal & — rather than using those characters literally in the built string. The raw = and & characters are being interpreted specially in that context rather than treated as plain literal text, and encoding them avoids the truncation.

← Browse Reporting and analytics questions