• Resolved mani2022

    (@mani2022)


    The users are not redirected to the custom url after registration. The users are supposed to be redirected to the payment page, but they are been redirected to homepage instead of custom url of the payment page

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @mani2022

    You can configure an action after registration for each user role in the user role settings. See https://docs.ultimatemember.com/article/103-user-roles-settings#registration-options

    Please verify settings for the default user role. Did you set a custom URL in the setting “Set Custom Redirect URL“? This URL must be safe. Users may be redirected to the homepage instead of a custom URL if the URL in this setting is not safe.

    See details in the description of the wp_safe_redirect() function. We recommend using relative URLs instead of absolute URLs to avoid this problem. Note: relative URL is an URL without a protocol and domain name.

    Regards

    Thread Starter mani2022

    (@mani2022)

    Hi

    The custom url I am using is safe one. It’s a payment url for registration. So it’s a safe site to use for custum url.

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hi,

    Did you verify that the domain in your custom URL matches the domain name of your site (onlineabacushub.com) and the protocol is the same (https)?

    Can you access this URL by a direct link? Maybe this page is restricted and redirects to the homepage.

    Regards

    Thread Starter mani2022

    (@mani2022)

    Hi

    Our website is a https site. The link which is been redirected after registration is a 3rd party payment gateway. As you said our website is restricted only for logged in users, but this doesn’t has any link with redirection to homepage as the actual redirection is towards the 3rd party payment gateway but post Registration users are being redirected to our homepage. This is the issue kindly fix the ASAP.

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hi,

    A link link to the 3rd party payment gateway is not safe (local) because it’s host (domain name) does not match your website domain name. The safe redirect mechanism is used to protect your site from being redirected to third party sites.

    You can allow additional hosts when validating redirects by using the allowed_redirect_hosts filter. See example below. Add hosts you want to allow to the $my_hosts array then add this code to the functions.php file in the theme directory.

    function my_allowed_redirect_hosts( $hosts ) {
    	$my_hosts = array(
    		'payment.gateway.com',
    	);
    	return array_merge( $hosts, $my_hosts );
    };
    add_filter( 'allowed_redirect_hosts', 'my_allowed_redirect_hosts' );

    Regards

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hi @mani2022

    A new setting “Allowed hosts for safe redirect” has been added to the page wp-admin > Ultimate Member > Settings > Secure since version 2.6.8. This feature lets you add and list reliable hosts so that users may be safely routed to a third-party server if necessary.

    We’re going to go ahead and mark this thread Resolved. Please feel free to re-open this thread if any other questions come up and we’d be happy to help.

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ultimate Member Redirect after registration’ is closed to new replies.