• Resolved saracomin

    (@saracomin)


    Hi everyone!

    I have a question: I use the plugin for OTP via email, after login I set a page as redirect. Is it possible to attach a parameter to the redirect URL of that page?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @saracomin,

    Thanks for reaching out to us.

    Currently, we only redirect the end user with the set redirection without adding any parameter.

    Can you please let me know which parameters you wish to add to the redirect URL?

    Also, let me know which login form you are using.

    You can share the link to the login form for my reference.

    You can reach out to us on our support by clicking on the Need Help icon on the bottom right of the plugin so that we can help you with your query.

    Waiting for your reply.

    Thread Starter saracomin

    (@saracomin)

    Hi,

    Thank you reply!

    The form is that of WooCommerce (https://pharlo3stg.wpenginepowered.com/mio-account/?redirect_url=%5Borigin url]). The redirect is set on the page https://pharlo3stg.wpenginepowered.com/registrati/. I would like to add the redirect_url parameter to this page, using the redirect_url parameter of the login page as the value.

    The goal is to ensure that the user, after logging in, is redirected to the page from which he arrived.

    The user will access the login page via a button, to which the redirect_url parameter will be added.

    Hello @saracomin,

    Thanks for your reply.

    Currently, we only redirect to the page configured in the plugin.

    We need to customize our plugin to make it compatible with your use case.

    Please let me know how you would like to connect so that we can discuss the use case and the solution for the same.

    You can reach out to us on our support by clicking on the Need Help icon on the bottom right of the plugin so that we can help you with your query.

    Thread Starter saracomin

    (@saracomin)

    Hi

    I was wondering why in this link I had found this hook that could be useful in my intent https://plugins.miniorange.com/wordpress-otp-verification-plugin-developer-guide

    >> otp_verification_successful/**
    * This hook is triggered after OTP entered by the user is validated successfully. * Use this hook to modify/decide the functionality after user has entered the * correct OTP and the system has validated it successfully. * @param $redirect_to the redirect to URL after new user registration * @param $user_login the username posted by the user * @param $user_email the email posted by the user * @param $password the password posted by the user * @param $phone_number the phone number posted by the user * @param $extra_data any extra data posted by the user */

    add_action( ‘otp_verification_successful’, function ($redirect_to,$user_login,$user_email,$password,$phone_number,$extra_data){ // your code goes here },10,6 );

    Hello @saracomin,

    Yes, you can definitely use the hook to update the redirection link.

    However, you may need to handle the login of the user as well on your end.

    Let me know if you need any help from our side.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Url variable redirect page’ is closed to new replies.