• Resolved khatfield

    (@khatfield)


    When setting a redirect URL, the plugin checks for the redirect Request Parameter.

    However, the standard WordPress parameter is redirect_to … I have a site set up using the login shortcode as the login page. When the site redirects someone to the login page so that they can view restricted content, the redirect_to parameter is used and the user is redirected to the home page after logging in, rather than the intended page.

    To resolve this, I added the following to the loginForm function in login_afo_widget.php where it checks for the redirect:

    
    } elseif(isset($_REQUEST['redirect_to'])){
        $redirect = sanitize_text_field($_REQUEST['redirect_to']);
    

    It would be great if this could be added to the plugin so that I don’t have to patch after every update.

Viewing 1 replies (of 1 total)
  • Plugin Author aviplugins.com

    (@avimegladon)

    redirect_to parameter support added in the plugin. Now redirect and redirect_to both will work. Please use the latest version of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Login Redirect Issue’ is closed to new replies.