Start a conversation

Resolving Placeholder Issue in Traditional Chinese Email Templates

Overview

The "Unsubscribe or manage notification preferences" link in Traditional Chinese emails displays a placeholder {settingsUrl} instead of the actual URL, preventing users from managing their notification settings. 

This issue is specific to the Traditional Chinese locale and is caused by the email template not substituting the placeholder with the correct link. 

The problem can be resolved by updating the email template using a GraphQL mutation to ensure proper substitution.

Information

Issue: "Unsubscribe or manage notification preferences" link in Traditional Chinese emails displays {settingsUrl} instead of the actual URL.

Cause: The email template for the Traditional Chinese locale is not substituting the placeholder with the correct link.

Resolution Steps:

  1. Identify the Affected Template:
    • The issue is with the Traditional Chinese version of the mail.template.notificationsSettings component.
  2. Update the Email Template:
    • Use a GraphQL mutation to update the template and ensure the correct substitution of the placeholder.
    • Example mutation:
      mutation createOrUpdateTextOverride($values: JSON!) {
        createOrUpdateTextOverride(componentId: "mail.template.notificationsSettings", locale: "zh-Hant", values: $values) {
          result { locale texts }
        }
      }
      { "values":{ "NotificationsSettings.body.html" : "取消訂閱或管理通知偏好設定", "NotificationsSettings.body.text" : "取消訂閱或管理通知偏好設定: " } }
  3. Verify Resolution:
    • After updating the template, send a test email in Traditional Chinese to confirm that the link is correctly substituted and functional.

Note: This update is specific to the Traditional Chinese locale and should not affect other languages. Ensure you have the necessary permissions to edit email templates via GraphQL.

Frequently Asked Questions

Q1: How do I know if this issue affects my emails?
A1: If you see the placeholder {settingsUrl} instead of the actual link in the "Unsubscribe or manage notification preferences" section of Traditional Chinese emails, this issue affects you.

Q2: What if the issue persists after updating the template?
A2: Ensure that the GraphQL mutation was correctly applied and that the template for the Traditional Chinese locale is properly configured. If the issue persists, contact support for further assistance.

Q3: Can this issue affect other locales?
A3: This issue is specific to the Traditional Chinese locale due to template configuration. Other locales should not be affected if their templates are correctly configured.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments