Support » Plugin: Groups 404 Redirect » Small Improvement With redirecting to pages

  • First off – thanks for your work on this, its very useful. I do have a small improvement that could be made. For some sites with a custom login, this plugin doesn’t have the ability to pass the requested url to the page its being redirected to – something the wordpress default login page does.

    You can add this functionality by passing the current requested page via the redirect_to query string and that would allow users to customize the landing page to redirect upon login, to the original requested page. Just wrap get_permalink() in the code below (With closing bracket) and the url will be appended with ?redirect_to=$current_url

    add_query_arg(array('redirect_to'=>urlencode(esc_url_raw($current_url))),

    https://wordpress.org/plugins/groups-404-redirect/

  • The topic ‘Small Improvement With redirecting to pages’ is closed to new replies.