WordPress.org

Forums

Users directing to parent site after using admin bar login/logout - why? (4 posts)

  1. Angie Meeker
    Member
    Posted 3 years ago #

    I'm working on a Multsite install with BuddyPress at http://www.yourcrimesite.com.

    Through buddypress admin bar's login link
    on both parent and child sites, the link goes to...
    http://yourcrimesite.com/wp-login.php?redirect_to=http%3A%2F%2Fyourcrimesite.com

    (don't know if that's important, but thought I'd throw it in there)

    If a user logs in using that link, no matter where the user started (on their own site or the parent site), they are returned to the parent site, where their profile info and admin bar is then available.
    >>I'd like the logged in user to be directed to the home page of the site they're associated with (not the parent site).

    If I visit childsite.com/wp-admin, I'm taken to the child site's dashboard.
    >>This is good

    If I visit childsite.com/wp-login.php, I'm logged into the child site, taken back to that child site's homepage with the admin bar, profile, etc., shown.
    >>This is good.

    Logging out from a child site's Admin Bar returns me to the parent site.
    >>Um...It's ok, but I think it would be better if the login/logout function hung around the child site rather than the parent site.

    Logging out from the profile drop down with the site takes me back to the site's login page.
    >>This is good.

    Also, all of the users I have currently were manually added, and the sites manually added - not sure if that matters.

  2. If a user logs in using that link, no matter where the user started (on their own site or the parent site), they are returned to the parent site, where their profile info and admin bar is then available.

    That's to be expected.

    http://yourcrimesite.com/wp-login.php?redirect_to=http%3A%2F%2Fyourcrimesite.com means 'when I'm done with logging in, go BACK to yourcrimesite.com'

    To get around it, I would suggest using in-line login forms on your children sites.

  3. Angie Meeker
    Member
    Posted 3 years ago #

    I think that's what I'm going to do. I added the sidebar login widget this morning. It's a little less sexy than what I want, but I think that can be fixed with styling!

    Plus, then I can just remove the admin bar altogether for logged out users.

  4. Angie Meeker
    Member
    Posted 3 years ago #

    Thank you, btw.

    When our site is up and running, and earning anything! you, Ron and Andrea will be getting presents. I don't know what yet, but you will!

Topic Closed

This topic has been closed to new replies.

About this Topic