When a user gets an email that has a link to say View Profile, if you click the link and you are not logged in it will redirect to a link that does not exist.
In my case I have my community set to a top level menu item titled lses-community. This link is only visible to registered users. So following any link to that page if I am not logged in is futile. Instead it redirects me to a page that does not exist even if I am logged in (lses-community/login). This of course ends in a page error.
Where do I control the email links so that I can redirect users that follow the links to things that they cannot see if they are not logged in or to pages that don't exist?