Callbacks and static/dynamic paths

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.

Cheers,
Karl

Karl,

Try replacing “path” with “html” and then turn it into an element.

-ToddOn 2/26/08, lists@panic.co.nz lists@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.

Cheers,
Karl


List info: The rt-devel Archives

Thanks heaps for that Todd, works like a charm.

Cheers,
Karl