blob: d63445459f1cf198f38e379df95dd814cccb7eb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<%init>
# avoid fatal errors if the extension isn't loaded
if ( defined( $RT::Extension::MobileUI::VERSION )
and RT::Extension::MobileUI->MobileClient()) {
my $path = 'm';
if ( $ARGSRef->{'q'} ) {
$path = "m/tickets/search?q=". $m->interp->apply_escapes($ARGSRef->{'q'});
}
RT::Interface::Web::Redirect( RT->Config->Get('WebURL') . $path);
} else {
return
}
</%init>
<%ARGS>
$ARGSRef => {}
</%ARGS>
|