diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_Choice.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_Choice.pm index 08a86c46e..f65b31a9d 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_Choice.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_Choice.pm @@ -197,7 +197,8 @@ sub _buildAuthLoop { if ( $auth and $userDB and $passwordDB ) { # Default URL - $url ||= "#"; + $url = ( defined $url ? $url .= $ENV{'REQUEST_URI'} : '#' ); + $self->lmLog( "Use URL $url", 'debug' ); # Options to store in the loop my $optionsLoop =