From 96793890f859f0a19f4811288f3c7336e71ffeaa Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 22 Jan 2024 12:20:23 +0100 Subject: [PATCH] Notification - Templates - Adding an example of how to use URL encoding with tokens --- changedetectionio/templates/_common_fields.jinja | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changedetectionio/templates/_common_fields.jinja b/changedetectionio/templates/_common_fields.jinja index ddccaf82..8b44ebbd 100644 --- a/changedetectionio/templates/_common_fields.jinja +++ b/changedetectionio/templates/_common_fields.jinja @@ -118,6 +118,9 @@

For JSON payloads, use |tojson without quotes for automatic escaping, for example - { "name": {{ '{{ watch_title|tojson }}' }} }

+

+ URL encoding, use |urlencode, for example - gets://hook-website.com/test.php?title={{ '{{ watch_title|urlencode }}' }} +