Skip to content

🐛Email template - variables in links break on save #1183

@gumuszee

Description

@gumuszee

When I add a link to the email template that uses liquid template variables, it breaks the variable when saving the template. Insted of {{ order.number }} there's URL-escaped %7B%7B%20order.number%20%7D%7D. This places the literal variable name in the link instead of the value.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Email templates' - both global and event specific
  2. Select any text to add a link, add a URL with liquid template variable.
  3. Check the preview - the link has the value filled in as expected
  4. Save the template
  5. Open the template to check - the URL is replaced with URL-safe values, preview shows literal liquid variable string, not the expected value.
  6. Make an order, check the received email, same issue - the link shows the literal variable, not the order specific value.

Expected behavior
The URL can contain variables as query parameters. I'm 100% sure this has worked before as we've been using it in previous events successfully.

Device information
This behavior is device independent - replicated on MacOS, Windows, Linux, Android - all in the Hi.Events web editor.

Hi.Events Version and platform
Cloud hosted on https://app.hi.events

Additional context
This must be a recent regression, since it used to work before.

Screenshots
Before save:
Image
Image

After save:
Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions