Templateset redirect patches in early June 2024 release¶
In the early June 2024 release, we patched client templatesets that used the snippet {{ page.followup.url }}
to use {% include_tmpl page.followup.url %}
instead. This addressed a bug with conditional content in redirects.
The release only patched templateset code in ActionKit, it didn't patch code in GitHub. If you use GitHub for templateset hosting, you'll want to make these replacements in GitHub yourself, otherwise the patches will be overwritten when you next push. This page only applies if you're using GitHub to manage ActionKit templatesets.
We've provided two SQL queries to help you identify any templatesets that need to be updated. You can run these queries as Custom SQL from the admin, by going to Reports -> New Query -> Custom SQL.
Note
These queries will only be valid once your instance gets the new release, 2.5.26. You've received the release when this notice is shown at the top of your ActionKit admin:

Please contact ActionKit support with any questions.
Query for the new syntax to identify our changes¶
This query shows the templates where we've successfully replaced {{ page.followup.url }}
with {% include_tmpl page.followup.url %}
in your ActionKit templatesets..
Any templates listed here will need to be updated in your GitHub repositories. If you get zero results, you don't need to do anything.
SELECT name AS templateset, filename FROM cms_template JOIN cms_templateset ON (cms_templateset.id = cms_template.templateset_id) WHERE (code LIKE BINARY '%{\% include_tmpl page.followup.url \%}%');
Query for the old syntax to find regressions¶
The next query shows templates that still have the old syntax, {{ page.followup.url }}
. If this query returns results, most likely a GitHub templateset sync'd to ActionKit and cleared our patches.
We'd suggest reviewing your GitHub templateset for instances of the old syntax.
SELECT name AS templateset, filename FROM cms_template JOIN cms_templateset ON (cms_templateset.id = cms_template.templateset_id) WHERE (code LIKE BINARY '%{{ page.followup.url }}%' OR code LIKE BINARY '%{{ page.followup.url}}%' OR code LIKE BINARY '%{{page.followup.url }}%' OR code LIKE BINARY '%{{page.followup.url}}%');