Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The mergeTags feature doesn't work anymore #144

Open
haZya opened this issue Jun 11, 2024 · 1 comment
Open

The mergeTags feature doesn't work anymore #144

haZya opened this issue Jun 11, 2024 · 1 comment

Comments

@haZya
Copy link

haZya commented Jun 11, 2024

Bug report

Describe the bug

mergeTags feature doesn't work anymore after the update that changes the template literal to mustache. It may be related to #133. Currently all the mergeTags are rendered empty in the emails. The variables are replaced correctly in the editor, however, once the email is sent, it is empty. This only happens to the variables declared in the mergeTags in the plugin options and not the ones that are passed to the .sendTemplatedEmail() function.

Steps to reproduce the behavior

Declare some mergeTags in the plugin options**

module.exports = ({ env }) => ({
  // ...
   "email-designer": {
    config: {
      editor: {
        options: {
          mergeTags: [
            {
              name: "Value1",
              value: "{{ VALUE1 }}",
              sample: "VALUE1",
            },
          ],
        },
      },
    },
  },
  // ...
});

Expected behavior

Correctly display the values from mergeTags.

Screenshots

Correctly parsed in the editor.

image

Empty in the actual email received.

image

System

  • Node.js version: 20.9.0
  • NPM version: 10.1.0
  • Strapi version: 4.24.2
  • Plugin version: 2.2.1
  • Database: Postgres
  • Operating system: Windows 11
Copy link

Thank you!! This is your first issue on this repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant