Forums

Password Protect WordPress
[resolved] Link redirection (5 posts)

  1. kenanoff
    Member
    Posted 1 year ago #

    If someone follows a link to the page within the blog (a single post for example), the login screen catches him (correct), but then after password is entered, redirects him not to the original requested page (the single post), but to the main page http://www.xxxxx.com/?login=true

    The originally requested page should be remembered and then the user should be redirected to it after login.

    http://wordpress.org/extend/plugins/password-protect-wordpress/

  2. jcnetsys
    Member
    Posted 1 year ago #

    This will be in the next update.

  3. Cliff
    Member
    Posted 1 year ago #

    This will probably be done more effectively be the developer, but you can edit login.php to pseudo-fix this. Find the form and change the action parameter to:

    <?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ?>

    It's working for me, at least. Currently. :)

  4. jcnetsys
    Member
    Posted 1 year ago #

    Thanks for that cliffseal. It will be fixed in next update.

  5. Cliff
    Member
    Posted 1 year ago #

    Great! Sorry for being so hack-ish.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic