Netlify custom email template variable {{ .ConfirmationURL }} not working

I’m using Netlify Identity for login. After uploading a pair of custom email template for “Confirmation” and “Recovery”, netlify is using the custom templates, but not picking up the variables such as {{ .ConfirmationURL }}

As a result, the confirmation email is sent out with an empty link, breaking the workflow.

For the simplest repro, I simply copied the default template from the documentation, only changing one place in the text so I can more easily tell whether the template is being used:

<h2>Reset Password (Custom Template)</h2>
<p>Follow this link to reset the password for your user:</p>
<p><a href="{{ .ConfirmationURL }}">Reset Password</a></p>

And the resulting email I get is:

Screen Shot 2020-04-03 at 8.07.39 PM

Hi, welcome to the Netlify community forum! I’m not sure why you can’t use {{ .ConfirmationURL }}, if it’s not working, it’s a bit unclear why the docs even mention it. Can you try the following syntax? (Make sure to edit the some/path/ parth):

<h2>Reset Password</h2>

<p>Follow this link to reset the password for your user:</p>
<p><a href="{{ .SiteURL }}/some/path/#recovery_token={{ .Token }}">Reset Password</a></p>