• HI,

    thanks for the great plugin. It helps a lot ??
    I have a question regarding the redirection of users. I have a site which allows a logged in user to submit a form. If the user is logged out he is redirected to the login page and this is fine. However, if the user clicks on “Registration” he can register but he won’t be redirected to the right page after successful registration.

    Is there any method in UM to accomplish this or do I need to do acrobatics with hooks? ??

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @tasup

    Have you tried checking the Redirection options in the WP Admin > UM > User Roles > Edit a Role page?

    Regards,

    Thread Starter tasup

    (@tasup)

    Hi,
    thanks for the quick reply.
    Yes, I’ve seen that and it’s great when there is a fixed redirection after registration.

    I will describe the process better:
    There are two landing pages for users, Registration and Submission.

    On the registration page the user can click several buttons and, depending on the button, create a user account with a different role (‘Parent’, ‘Child’ etc.)

    On the submission page a user can click on a button and he might or might not (depending on the button) need a user to submit a form. So I would redirect him to the login if he needs a user. He can register from there and should come back to the form he wanted to submit…

    I hope this is clear ??

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @tasup

    The login page should have the redirect_to parameter.

    You must add a redirect_to=<the referring URL> in the link or submission redirection option.

    So it should be like this: https://www.yoursitedomain.com/login/?redirect_to=<go back to the previous page's URL>

    Once there’s a redirec_to in the Login page, it will redirect back to that page when the Login is successful.

    Regards,

    Thread Starter tasup

    (@tasup)

    Hi @champsupertramp

    thanks for the response. This redirection is already taking place because I configured it in the page settings for restricted access. Nevertheless, when the user clicks on the “Register Button” which is provided by the Login Form the redirection info gets lost because he is leaving the login site. So the redirection sucessfully works when the user logs in, but not when he wants to create a new account.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect user coming from restricted page after registration’ is closed to new replies.