Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#5893 closed enhancement (wontfix)

Redirect non-admins from /wp-admin/ to profile

Reported by: sooskriszta Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc: sooskriszta

Description

If an administrator logs in at domain.com/wp-login.php or domain.com/wp-admin, (s)he should arrive at WP Dashboard

If an administrator logs in via BP bar (or anywhere else) OR
If a non-admin user logs in from anywhere
(s)he should arrive at his/her profile page.

Change History (6)

#1 follow-up: @boonebgorges
6 years ago

If an administrator logs in at domain.com/wp-login.php or domain.com/wp-admin, (s)he should arrive at WP Dashboard

I believe this already happens.

If an administrator logs in via BP bar (or anywhere else) OR
If a non-admin user logs in from anywhere
(s)he should arrive at his/her profile page.

Our current behavior is to redirect you to the page you were previously visiting. This behavior seems much better in most cases: say you're viewing a group, realize it's private, and log in - you'll surely want to be redirected back to your own group.

What is the argument for going to one's own profile instead?

#2 in reply to: ↑ 1 @sooskriszta
6 years ago

Replying to boonebgorges:

Our current behavior is to redirect you to the page you were previously visiting.

Actually I agree with that totally. Should edit OP.

My beef is with the behavior that when a non-admin logs in at domain.com/wp-admin she is sent to WordPress dashboard.

#3 follow-up: @r-a-y
6 years ago

  • Summary changed from Redirect to profile upon login to Redirect non-admins from /wp-admin/ to profile

My beef is with the behavior that when a non-admin logs in at domain.com/wp-admin she is sent to WordPress dashboard.

I actually agree with this for users with the subscriber role.

However, this might interfere with other sites that have some custom redirects in place (e-commerce plugins, membership plugins, etc.). For this reason, I'm inclined to say that we do not do anything.

#4 @DJPaul
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Agree with r-a-y. I don't think we should touch this part of WordPress; it feels like we would impose our behaviour over other plugins.

#5 in reply to: ↑ 3 @sooskriszta
5 years ago

Replying to r-a-y:

this might interfere with other sites that have some custom redirects in place (e-commerce plugins, membership plugins, etc.)

If other plugins are able to do this, no reason why shouldn't be too. Perhaps we can either:

  • Ensure our redirect takes the least priority (just above WordPress core), or
  • Provide UI for site admins to choose which redirect they wish to honor.
Last edited 5 years ago by sooskriszta (previous) (diff)

#6 @alexua22
5 years ago

In task says that If a non-admin user logs in from anywhere - (s)he should arrive at his/her profile page.

But in comments of the card have message that best idea - to arrive at previos page.

So if you are non-admin user logs for first time - you arrived at profile page.

If you was already in the system and switched to the forbidden page, you returned to the previous.

Is this correctly?

Note: See TracTickets for help on using tickets.