Support » Plugin: More Privacy Options » User gets redirected to admin screen after login

  • Resolved jelnet

    (@jelnet)


    With site settings of your plugin as: Visible only to registered users of this site a login screen is shown when someone attempts to view the site (as expected).

    But following login, they are redirected to the wp-admin screen. I thought the default behaviour was to be sent to the page originally requested (in this case the site homepage) – is that right?

    It could be there is a conflict with another plugin causing this.

    Ta for any help.

    https://wordpress.org/plugins/more-privacy-options/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Sader

    (@dsader)

    auth_redirect is a WordPress function called in this plugin. In contrast to calling wp-login.php directly where user goes through to the dashboard, auth_redirect should send user back to the request url. SO yeah, something appears amiss as you describe it.

    auth_redirect function is also pluggable and hookable and may be altered by other plugins.

    This plugin does not alter auth_redirect … so perhaps some other login redirect is at play there.

    Thread Starter jelnet

    (@jelnet)

    Thanks David for your answer. I’ve worked around it with another plugin which prevents the redirect in this instance – the joys of WP! And thanks for your plugin, works a treat!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User gets redirected to admin screen after login’ is closed to new replies.