I have a user homepage that I want users to be redirected to when they login from the login page. I do know how to go into the user settings and select this page (user homepage) as the one to redirect users after login. However, this setting overrides the ?returnurl= (value) , so that even if there is a returnurl value it will still go to my user homepage. Now I dont want this. I just want if someone clicks on my website to login it will take them to my login page and upon signing in they are taken to the userhome page. If they have tried to enter a user only page without being logged in, and it takes them to the login page with the returnurl= value, then I want it to return the user to the specified value rather than my user homepage, after they login.
In a nutshell:
I want to set so that users who login are directed to the users homepage, but if a returnurl=value is present in the URL i want it to take the user to the value rather than the users homepage.
Is this possible, and how would I do it?
Thanks
James