How to replace a space in a customer name with %20 in emailed links?

I created a flow to email me a link to search for a customer’s name whenever an Abandoned Checkout occurs, but the link breaks. How do I have Flow convert spaces in their name to %20?

The screenshot below is an example of what happens.

1 Like

You should be able to use the replace liquid filter for that:

https://help.shopify.com/en/manual/shopify-flow/reference/variables#filters

| replace for when it must be %20 etc or one offs, otherwise use url_encode keeping in mind it turns spaces to + signs

https://shopify.github.io/liquid/filters/url_encode/