Minor - fixing redirection after login depending in the Chamilo settings.