RT mobile UI, #11630
[freeside.git] / rt / share / html / Callbacks / RT-Extension-MobileUI / Ticket / Display.html / Initial
1 <%INIT>
2 return if $ARGSRef->{'NoRedirect'};
3 if ( defined($RT::Extension::MobileUI::VERSION)
4     and RT::Extension::MobileUI::MobileClient()) {
5     my $id = $ARGSRef->{'id'} || ($TicketObj ? $TicketObj->id : undef);
6     RT::Interface::Web::Redirect(RT->Config->Get('WebURL').'m/ticket/show?id='.$id);
7     $m->abort;
8 }
9 </%INIT>
10
11 <%ARGS>
12 $TicketObj => undef
13 $ARGSRef => {}
14 </%ARGS>