Without the loginUrl setting, gerrit assumes the user is logged in; if that is not the case, it then automatically attempts to start the OAuth process and redirects to GitHub.