Forum Discussion

ErkkiS_295148's avatar
Apr 20, 2017

F5 ASM Custom Block Response - mailto link insert support-id into subject

Hello!

How can I create a block response that would copy the <%TS.request.ID()%> into the subject of the e-mail when clicking the mailto-link.

HTML-encode doesn't work cause user would get a value <%TS.request.ID()%> instead of the actual number. When I put the stuff in the mailto link in "" then it doesn't work at all.

Is there any Javascript or other means of sorcery that could accomplish this?

Kind regards, Erkki


 
  Request Rejected
 
 



The requested operation was rejected by Web Application Firewall.
If this is a mistake then please kindly inform the WAF team.


Contact by phone: +372-blah and tell them the support ID: <%TS.request.ID()%>


You can also reach us by e-mail: 


 
  • Hi,

     

    You can try below

     

    Request RejectedThe requested URL was rejected. Please consult with your administrator.

     

     

    Your support ID is: <%TS.request.ID()%>

     

     

     

     

     

     

    • ErkkiS_295148's avatar
      ErkkiS_295148
      Icon for Cirrus rankCirrus

      Unfortunately that approach does not work - the Outlook pops out a window with the link I used but does not do anything when clicking the link with suggested format.

  • Long story short: Before the box parses the HTML it replaces all the parameters so the preview doesn't show the correct and working page that actually works as it does work in the real browser.

    Solution that works properly (remove the apostrophes):

    ``