Opened 13 years ago
Closed 13 years ago
#1580 closed defect (bug) (fixed)
bbp_logout_url() interferes with existing 'redirect_to' parameter
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 2.0 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Front-end | Keywords: | has-patch |
Cc: |
Description
If there is an existing "redirect_to" parameter in the logout URL, bbp_logout_url() doesn't take this into account, it adds an additional "redirect_to" the logout URL.
Tested with the BuddyPress bp-default theme's logout link and bbP 2.0 beta 3.
---
Also fixes $redirect_to parameter for WP installs in a sub-directory by using wp_guess_url() instead of home_url( $_SERVERREDIRECT_URL? ).
eg.
before - localhost/bbpress/bbpress/REST_OF_LINK (invalid)
now - localhost/bbpress/REST_OF_LINK
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Nice catch! Confirmed.