The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<%INIT>
return if $ARGSRef->{'NoRedirect'};
if (RT::Extension::MobileUI::MobileClient()) {
    my $id = $ARGSRef->{'id'} || ($TicketObj ? $TicketObj->id : undef);
    RT::Interface::Web::Redirect(RT->Config->Get('WebURL').'m/ticket/show?id='.$id);
    $m->abort;
}
</%INIT>

<%ARGS>
$TicketObj => undef
$ARGSRef => {}
</%ARGS>