Upgrade to 4.0.8 with mod of ExternalAuth + absolute paths to ticket-menu.
[usit-rt.git] / local / plugins / RT-Authen-ExternalAuth / html / Callbacks / ExternalAuth / autohandler / Session
1 <%init>
2 $m->comp('/Elements/DoAuth',%ARGS);
3
4 # 3.8.9 doesn't redirect to the specified page if request has one.
5 if (   $m->request_comp->path eq '/NoAuth/Login.html'
6     && RT::Interface::Web::_UserLoggedIn()
7     && $ARGS{next} )
8 {
9     my $next = delete $session{'NextPage'}->{ $ARGS{'next'} };
10        $next = $next->{'url'} if ref $next;
11     RT::Interface::Web::Redirect( $next || RT->Config->Get('WebURL') );
12 }
13 </%init>