[buddypress-trac] [BuddyPress] #3763: Bad login redirect URL

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Nov 24 18:42:49 UTC 2011


#3763: Bad login redirect URL
--------------------------+-----------------------------
 Reporter:  papaenapuros  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.5.1
 Severity:  major         |   Keywords:  needs-patch
--------------------------+-----------------------------
 Hello,

 I have a buddypress install in a subfolder in a domain (ie,
 http://www.mydomain.com/buddypress). That is, http://www.mydomain.com has
 a Wordpress install, and “/buddypress” is another different install. Both
 them are single Wordpres installs (not multiuser).

 When you send a private message, you receive an email width the text “To
 view and read your messages please log in and visit:
 http://www.mydomain.com/buddypres/users/name/messages/” which is a correct
 URL.

 If you click in the link (when logged out), you are redirected to a bad
 URL. This is:

 http://www.mydomain.com/buddypress/wp-
 login.php?redirect_to=/buddypress/?redirect_to=http://www.mydomain.com/buddypress/users/name/messages

 As you can see, there are 2 “redirect_to” parameters. The text
 “redirect_to=/buddypress/” is not needed, and it’s causing the problem. If
 I delete it, it works fine and when you’re logged you are redirected to
 the messages page.

 Any idea how to fix it? It seems to be a bug in the core files.

 Thanks in advance.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3763>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list