• I’m trying to redirect to a URL that includes query parameters, but it seems like anything after the & in the redirect URL gets stripped out. I think its because the redirect URL needs to be urlencoded().

    e.g., in simple-page-access-restriction.php:172, if we add urlencode() to the home_url() .$_SERVER[‘REQUEST_URI’], it preserves the parameters.

    $redirect_url = add_query_arg( $settings[‘redirect_parameter’], urlencode(home_url() . $_SERVER[‘REQUEST_URI’]), $redirect_url );

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL Encode the redirect_parameter’ is closed to new replies.