#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)
#2
in reply to:
↑ 1
@
10 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:
↓ 5
@
10 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
@
10 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
@
9 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.
#6
@
9 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?
I believe this already happens.
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?