From a65e1f6f0a03f5df18765156da0d584dd4968dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Fri, 20 May 2016 08:47:39 +0000 Subject: [PATCH] Use REQUEST_URI to restore request path in Choice URL (#1022) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_Choice.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 =