Support » Plugin: Age Verify » URL Redirection issue

  • Hello,

    please attach that to the future version of your plugin to keep it more flexible:

    $url_connector = (empty($_GET) ? '?' : '&');
    wp_redirect( esc_url_raw( $redirect_url ) . $url_connector .'age-verified=' . wp_create_nonce( 'age-verified' ) );

    in file class-age-verify.php on line 359.

    Without that I get two question marks in url address.

    Cheers!

    https://wordpress.org/plugins/age-verify/

Viewing 1 replies (of 1 total)
  • dale3h

    (@dale3h)

    I have experienced this issue as well. However, I feel that using add_query_arg() would be a better practice:

    wp_redirect( esc_url_raw( add_query_arg( 'age-verified', wp_create_nonce( 'age-verified' ), $redirect_url ) ) );

    I have tested this and it seems to work great.

Viewing 1 replies (of 1 total)
  • The topic ‘URL Redirection issue’ is closed to new replies.