Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey there jezThomp,

    How are you doing today?

    The default login redirect behavior is the following:

    1. If logged in via protection message login after login user lands on the same page he was logging in on.

    2. if logged in via Membership 2 widget user is redirected to Account page, or the page that is being set as Account page in Membership 2 -> Settings -> General.

    Do you maybe have Redirect Control add-on active? This add-on allows you to redirect users when they login/logout.

    If not do you have any redirection rules set by some other plugin or in htaccess?

    Please advise,
    Bojan

    Thread Starter jezthomp

    (@jezthomp)

    Thank you for your reply Bojan.

    I had no other redirect options set up, but did find the issue if its a help to anyone.

    I had the function for Royalslider set up, this js plugin had been removed from the site but, the initialising function was still in my JS.

    For some reason this was meaning the ‘logging in’ text wasn’t appearing above the form and thus when you submitted it went to this random /login page.

    I have no idea but i’ve figured it out now, thank you.

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey again jezThomp,

    Glad you managed to figure this out, it’s possible that Royalslider JS was simply conflicting with Membership 2 or another plugin preventing scripts from working properly.

    Also thanks for posting what was actually causing this in case there are other members with the same issue.

    Have a great weekend 🙂

    Cheers,
    Bojan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login redirects to random page /login?’ is closed to new replies.