Please Log in or Create an account to join the conversation.
ducks_mrd wrote: Hi Coltonalton,
Like andrex143 I posted which code need changing in the core files.
However, I would like to amend my previous response to say don't do core edits as this can all be done with Auto Actions.
I have got my site setup that when a "un-authorised" user visits a page they are redirected to the registration page with the url of the last page appended to the url as the variable "return".
In the Auto Actions plugin I created a before registration action to check if the url contains the return variable if it does it saves it to the session.
Then after registration another action firsts logs the new user in and then checks if the return is set in the session and if it is it you get redirected back to page you were not able to access in the first place.
If there is no return url set then the redirect takes the user to the profile edit page instead. (But you can set to whatever you want).
Even if you do not need as much flexibility as above just a simple redirect after registration can be done with Auto Actions.
Hope this helps but give me a shout if you want me to post examples of my Auto Actions.
Mike
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.