@edneymatias Thank you for pointing that out. But our company uses already survey monkey for other projects.
@martin.von.wittich
Thanks a lot for the tricks. Stopping zammad while updating the DB does not help. Somehow zammad ignores the changes after restart…
The ruby console does the following:
s.body.gsub! /ticket\.id/, '#{ticket.id}'
=> "...<a href=\"https://www.surveymonkey.de/r/Z7CXXXS?\#{ticket.id}\" rel=\"nofollow noreferrer noopener\" target=\"_blank\" title=\"https://www.surveymonkey.de/r/Z7CB5KS?\#{ticket.id}\">..."
Seems cool so far and I was very happy. href and title are looking good. But if I check if it worked and look again to the body it looks like this:
irb(main):078:0> s = Signature.find(1)
=> #<Signature id: 1, name: "default", body: "<br>\#{user.firstname} \#{user.lastname}<div><div><d...", active: true, note: "", updated_by_id: 3, created_by_id: 1, created_at: "2017-05-16 08:15:36", updated_at: "2019-06-28 18:52:13">
irb(main):079:0> s.body
=> "...<a href=\"https://www.surveymonkey.de/r/Z7CB5KS?#%7Bticket.id%7D\" rel=\"nofollow noreferrer noopener\" title=\"https://www.surveymonkey.de/r/Z7CB5KS?\#{ticket.id}\"...
As you can see the title of the link is still valid but some “magic” escapes the href URL again.
Cheers,
Mathias