You can achieve that by linking to https://community.example.com/session/sso
for authenticated users in your application. That will trigger the login / account creation flow. You could also add the parameter ?return_path
to link to a specific page.
For unauthenticated users you should still link to https://community.example.com
.