[Rt-devel] Callbacks and static/dynamic paths

Todd Chapman todd at chaka.net
Tue Feb 26 22:00:34 EST 2008


Karl,

Try replacing "path" with "html" and then turn it into an <a> element.

-Todd

On 2/26/08, lists at panic.co.nz <lists at panic.co.nz> wrote:
> Hi,
>
>  I've been trawling through the archived posts here today and I've worked
>  out how to do a callback but I've come across something which I'm not sure
>  is possible to get around nicely. As follows:
>
>  I've created a callback for Tickets/Elements/Tabs which adds a new button
>  to the actions list beside comment, reply, resolve etc. Anyway, I'm
>  wanting this button to link to another server but when I put the path:
>
>  $actions->{'zz'} = { title => loc('ButtonName'), path =>
>  'http://anotherserver/page?ticketid='.$Ticket->id };
>
>  The link ends up like:
>
>  http://RTServer/http://anotherserver/page?ticketid=2560
>
>  Is there any way to get around this? I could create a page on the request
>  tracker server which takes the GET value and then generates a page with
>  the below statement in it but it seems a bit messy, any help would be
>  greatly appreciated.
>
>  <meta http-equiv="refresh"
>  content="2;url=http://anotherserver/page?ticketid=2560">
>
>  Cheers,
>  Karl
>
>
>  _______________________________________________
>  List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>


More information about the Rt-devel mailing list