Logging in should take you to logged-in version of previous page

Bug #449 reported by Matthew Paul Thomas
18
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Steve Alexander

Bug Description

The "login/register" link has a workflow that encourages use of the Back button. This in turn causes the user to see stale pages.

Steps to reproduce:
1. Follow the "Log in / Register" link from any page.
2. Log in.
What happens:
* You are told that "You are now logged in as <whoever>", and nothing else happens.
* If you use the Back button to get back to where you were, it's cached so that it looks like you're not logged in.
What should happen:
* Logging in returns you to a logged-in version of the page you were on.

We know what page you were on, because it's the bit before the "/+login" in the URL. And we can take you to a logged-in version by adding something like "?gc7zy0" (or perhaps something more meaningful) to the end of the URL so that you don't get a cached version.

Revision history for this message
Steve Alexander (stevea) wrote :

The issue is that the "login/register" link at the top of each page sends you to "/+login". This means that you must use the back button of your browser to return to your previous position.

If the link is changed to be the current URL plus /+login (also handling query parameters) then things would work as expected. There would be no need to use the back button.

There is no need to do special things to cope with cacheing. The site runs over HTTPS, so cacheing should not happen except when you use the back button.

Steve Alexander (stevea)
Changed in launchpad:
assignee: nobody → stevea
Steve Alexander (stevea)
Changed in launchpad:
status: New → Fixed
Revision history for this message
Felipe Gil Castiñeira (xil) wrote :

I can still reproduce this bug. The bug #3057 seems related to this one.

Revision history for this message
Jorge Bernal (koke) wrote :

This is quite annoying since if you login from the front page, the only link you get is the "Logged in as $NAME" one, so you con only visit your own profile.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Other than bug 3057, the one page where this bug is not fixed is now covered by bug 1612.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.