Opened 15 years ago
Closed 12 years ago
#1356 closed defect (bug) (worksforme)
Usernames with @ redirect to home rather than profile/edit profile
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: | ersavla |
Description ¶
Using WPMU 2.8.4 and BP 1.1.2, some username links from the member directory fail to navigate to the member profile, but return you to the home page, instead. No error reported.
outolumo reported this behavior at http://buddypress.org/forums/topic/trouble-with-sign-in-the-username; I've got the same problem.
The @-symbol appears to be the difference between username links in the directory that successfully bring you to the member's profile, and those that don't.
(Why it's key, to us anyway: We need to use email as username, without major hacks to make it work. For our use, I haven't come across any WPMU-based blockades on this. Outolumo's workaround doesn't happen to work, given our user base and use case. Admins establish our user accounts, not users via registration.)
Pull Requests
- Loading…
Change History (7)
#2
@
15 years ago
- Cc ersavla added
- Resolution invalid deleted
- Status changed from closed to reopened
- Summary changed from Usernames with @ redirect to home rather than profile to Usernames with @ redirect to home rather than profile/edit profile
Adding the definition to the wp-config.php solved the problem of navigating to the profile from the directory. However, now seeing similar behavior when:
--> logged in as site admin, trying to navigate from profile > Admin Options > Edit {username}'s Avatar or Edit {username}'s Profile.
--> logged in as user with an email-based username, trying to navigate to My Account > Profile > Edit Profile OR trying the Edit Profile button or menu option from within profile itself.
In each case, the site redirects to the home page rather than the Edit Profile interface.
Accounts with other types of usernames (straight alpha) DO reach the Edit Profile interface.
Thanks for your help!
#3
@
15 years ago
With @ sign usernames, I am able to get to the edit screen, but the edit action is causing a redirect to home. The action is completing successfully though.
I echoed some of the server request uris and found that something stripping out the @ sign.
#4
@
15 years ago
Update:
This problem is caused by a wp_sanitize_redirect. You'll probably want to override this function in bp-core (if they have the username compatibility constant enabled). I'll come up with some code as soon as I can ...
If you are allowing @ symbols in usernames, then please add this to your wp-config.php:
define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true );
http://codex.buddypress.org/how-to-guides/changing-internal-configuration-settings/
Please re-open if this does not work correctly for you.