Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#1846 closed enhancement (fixed)

logical login redirect replacement for bp-default

Reported by: mikepratt's profile mikepratt Owned by:
Milestone: 1.2 Priority: major
Severity: Version:
Component: Keywords: login
Cc:

Description

In bp-default, the login form in sidebar.php redirects to

<input type="hidden" name="redirect_to" value="<?php bp_root_domain() ?>" />

which has the unwanted effect for the user of taking them away form their entry point to the site, forcing either a page back or suer that gives up on that page and moves on.

Suggest using:

<input type="hidden" name="redirect_to" value="<?php echo wp_get_referer() ?>" />

in order to keep the user on the page he was on when attempting to login, keeping the experience consistent

Change History (3)

#1 @windhamdavid
14 years ago

i second this ticket! :)

#2 @apeatling
14 years ago

This would redirect them to the page they viewed before the page they logged in though.

#3 @apeatling
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2630]) Fixes #1846

Note: See TracTickets for help on using tickets.