I've searched the forums but can't find this specific issue I'm having, apologies if I've missed something obvious.
I am using Ultimate Member for registration and login, all working ok. I have disabled guest access using the recommended method so users need to be registered and logged in to view the forums, also all working ok.
The issue I have is I can't work out which URL to link to from our main website menu so that if a user is not logged in they see the UM login page (/login), but if they are already logged in they go straight to the /community page.
If going to /community and not logged in, all they see is the forum title, header and footer (no login page).
If going to /login when already logged in, they see their profile name and a couple of links (account and logout).
Is there something clever I can do with redirections to achieve the desired result?
I've tried the solution here but it hasn't worked - https://wpforo.com/community/how-to-and-troubleshooting-2/redirect-non-logged-in-user-to-login-page/