If you want redirect users to a specific page after they login to your WordPress site using custom login page then here is custom solution
Step 1: add the code in function.php file of child theme.
add_filter( 'login_url', 'wp_custom_login_url', 10, 3 );
function wp_custom_login_url( $login_url, $redirect, $force_reauth ) {
$login_page_id = 2579; // ID of your custom login page
$login_url_page = get_permalink( $login_page_id );
$updated_url = $login_url_page .'?redirect_to=' . urlencode($_SERVER['REQUEST_URI']);
return $updated_url;
}
Step 2: add the code in custom login page
$url_paths = site_url();
if(isset($_GET['redirect_to']) ){
$url_paths = $_GET['redirect_to'];
}
wp_redirect($url_paths);
exit();