How can I redirect to a page of my own choosing when the user inadvertantly clicks login, but is already logged in. Right now it goes to a "profile" page which is mostly blank. I would like to just redirect to a page of my choosing such as the home page or the login landing page.
How could I do this? I would be grateful for ideas.