Hi YuriK ,
Thank you for your answer.
Indeed, I already thought about these solutions. And for the security reasons, I'm not comfortable with the cookie too... :smileysurprised:
I managed to recreate the ticket via JS. I saw that an hidden input always contains this ticket value:
<input type="hidden" name="ticket" value="xxxxxxxxx">
So, with jQuery :
theTicket = jQuery('input[name=ticket]').attr('value');
theLink = jQuery('.addtoFriendBut');
theLink.attr('href',theLink.attr('href')+theTicket);
With the HTML / Freemarker part :
<a class="addtoFriendBut" href="/t5/user/v2/viewprofilepage.addfriend/user-id/${page.context.user.id}?t:ac=user-id/${page.context.user.id}&t:cp=notes/contributions/contactactions&ticket=">ADD ME !!!</a>
Not optimum because of the JS... but maybe it can help... :)
Best regards,
Stéphane