Variables in Signature HTML Hyperlink


  • Used Zammad version: 5.2.X
  • Used Zammad installation type: package
  • Operating system: Ubuntu 20
  • Browser + version: Chrome

Expected behavior:

There should be a way to create a signature with an HTML link where the link uses zammad variables.
To create a survey link that accepts GET parameters populated by zammad variables.
<a href=“{user.firstname}&agent_last_name=#{user.lastname}”>Leave Me Feedback</a>

Actual behavior:

Curly Braces are replaced with their uri_encoded equivalents.
“{” becomes %7B and “}” becomes %7D.

Steps to reproduce the behavior:

Create a signature with an HTML link where some of the GET parameters are defined by Zammad variables.
Observe the curly braces are replaced.

HTML signatures may be technically possible but are not officially supported.
Everything around HTML signatures is hacky and might lead to unwanted behavior.

Pasting HTML content into signatures is, like everything else with HTML subject to Zammads HTML sanitizer doing things to it. Apart from your href being incomplete (protocol missing). There are several encoding issues on our github repository. You’ll have to wait until these are sorted out I’m afraid.

Ran into this, too, i.e. variables in HTML attributes aren’t not substituted.
Was trying to “emulate” individual signatures and and embed photos through data URI dynamically, but alas…

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.