diff --git a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Menu.pm b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Menu.pm index 0f069f048..fa336e611 100644 --- a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Menu.pm +++ b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Menu.pm @@ -41,7 +41,14 @@ sub menuInit { $self->{menuError} ||= $self->{error}; # Tab to display - $self->{menuDisplayTab} = "appslist"; + # Get the tab URL parameter + $self->{menuDisplayTab} = $self->param("tab") || "none"; + + # Default to appslist if invalid tab URL parameter + $self->{menuDisplayTab} = "appslist" + unless ( $self->{menuDisplayTab} =~ /^(password|logout)$/ ); + + # Force password tab in case of password error $self->{menuDisplayTab} = "password" if ( (