• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Accessing registration page when already logged in

#1
I've got a "register" link elsewhere on my site that links directly to the user registration form. If a user is already logged in and clicks on it, they get pushed back to the page they came from.

Understand this behaviour but I'd like to add a javascript alert saying you are already logged in or perhaps just redirect to the forum index, but not sure where I need to insert my code. Can anyone help?