Encode value for url in change password email template

Problem statement

Currently i’m trying to modify my change password email template.
My requirement is to send the email id in the redirection URL as a parameter in encoded format.

Cause

URL encoding is not directly supported. More on that here:

Solution

Currently we only support the liquid syntax filters listed below, and the closest you can use is HTML escaping option, which is unfortunately not URL encoding:

However you can perform simple encoding of email addresses, i.e. replacing the “@” symbol with “%40” using this:

{{ user.email | replace:'@','%40' }}