Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author podpirate

    (@podpirate)

    Hi, looks like there is a bug with subdirectory installs. I will fix it soon. A hotfix would be to filter the wpaa_restricted_post_redirect, and return a login URL with a correct redirect param.

    That one should do it:

    function wpaa_fix_login_redirect( $redirect , $post_ID ) {
        if ( ! is_user_logged_in( ) )
            wp_login_url( get_permalink( $post_ID ) );
        return $redirect;
    }
    add_filter('wpaa_restricted_post_redirect','wpaa_fix_login_redirect');
    Plugin Author podpirate

    (@podpirate)

    Addition: The bug is fixed in v1.4.3. (Thank god, that was easy!)

    Thread Starter baileys

    (@baileys)

    Perfect! Thanks a lot for this quick bugfix!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘duplicate wordpress folder in login redirect url’ is closed to new replies.