[Bps-public-commit] r20278 - RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Sun Feb 20 08:30:48 EST 2011
Author: sunnavy
Date: Sun Feb 20 08:30:48 2011
New Revision: 20278
Modified:
RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Session
Log:
need to hack for the right redirect
Modified: RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Session
==============================================================================
--- RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Session (original)
+++ RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/autohandler/Session Sun Feb 20 08:30:48 2011
@@ -1 +1,14 @@
-%$m->comp('/Elements/DoAuth',%ARGS);
+<%init>
+$m->comp('/Elements/DoAuth',%ARGS);
+
+# 3.8.9 doesn't redirect to the specified page if request has one.
+if ( $m->request_comp->path eq '/NoAuth/Login.html'
+ && RT::Interface::Web::_UserLoggedIn()
+ && $ARGS{next} )
+{
+ my $next = delete $session{'NextPage'}->{ $ARGS{'next'} };
+ if ($next) {
+ RT::Interface::Web::Redirect( $next || RT->Config->Get('WebURL') );
+ }
+}
+</%init>
More information about the Bps-public-commit
mailing list