Upgrade to 4.0.8 with modification of ExternalAuth.
[usit-rt.git] / local / plugins / RT-Authen-ExternalAuth / html / Callbacks / ExternalAuth / autohandler / Session
CommitLineData
84fb5b46
MKG
1<%init>
2$m->comp('/Elements/DoAuth',%ARGS);
3
4# 3.8.9 doesn't redirect to the specified page if request has one.
5if ( $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'} };
86404187 10 $next = $next->{'url'} if ref $next;
84fb5b46
MKG
11 RT::Interface::Web::Redirect( $next || RT->Config->Get('WebURL') );
12}
13</%init>