diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index fc6e8b41b..438f08507 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -347,7 +347,10 @@ sub autoRedirect { } else { my $url64 = encode_base64( $req->{urldc}, '' ); - $req->pdata( {} ) if ( $req->{pdata}->{_url} =~ /$url64/ ); + if ( $req->{pdata}->{_url} =~ /$url64/ ) { + $self->logger->info("Force cleaning pdata"); + $req->pdata( {} ); + } return [ 302, [ Location => $req->{urldc}, $req->spliceHdrs ], [] ]; } }