Closed Bug 632438 Opened 13 years ago Closed 13 years ago

Redirect users back to their initially loaded page after sign in

Categories

(Websites Graveyard :: drumbeat.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KenSaunders, Assigned: contact)

References

()

Details

(Whiteboard: 03-07-2011)

User-Agent:       Mozilla/5.0 (Windows NT 6.0; rv:2.0b12pre) Gecko/20110208 Firefox/4.0b12pre
Build Identifier: Mozilla/5.0 (Windows NT 6.0; rv:2.0b12pre) Gecko/20110208 Firefox/4.0b12pre

After signing in, users should be redirected back to the page that they were on before signing in. Currently they are directed to https://drumbeat.org/en-US (or other locale). 

One reason being is if a user follows a link to a Drumbeat page from another site and wants to interact with that page (follow a project, etc), they have to sign in, and then go back in their history (2 or so pages), and then refresh that page to interact with it as a logged in member.

Reproducible: Always

Steps to Reproduce:
1. Visit a page on drumbeat.org logged out
2. Click on Sign In
3. 
Actual Results:  
Redirected to https://drumbeat.org

Expected Results:  
To be returned to the initially loaded page
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: 03-28-2011
OS: Windows Vista → All
Hardware: x86 → All
Whiteboard: 03-28-2011 → 02-28-2011
Whiteboard: 02-28-2011 → 03-07-2011
Assignee: nobody → contact
I've submitted a (proposed) fix as pull request #31:

https://github.com/paulosman/batucada/pull/31
Hi,
I was working on this one too but James you had done some stuff nicer so updated mine accordingly. This pull works with signing in through openid and the locale will be retained e.g. '?next=/en-US/people'

https://github.com/paulosman/batucada/pull/32
Whoops! Sorry, Cillian - didn't mean to step on toes! Nice modifications in your request! +1 :)
No worries James. It was good to learn from your approach.
Thanks guys. I've merged in the pull requests.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.