Add links to Discourse that allow users to authenticate via SSO or access private groups directly if they are logged in already

If the users are already logged into your WordPress site, this should not be happening. Can you clarify if the users who this is happening to are logged into WordPress? If they are logged in. they are expected to be silently redirected to the Discourse URL that you have set in the return_path argument.