Closed Bug 377552 Opened 19 years ago Closed 18 years ago

Logging in takes you to https://addons.mozilla.org/en-US/firefox/ instead of keeping you at the same page

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: standsongrace, Assigned: clouserw)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Build Identifier: When you login, you are annoyingly sent to https://addons.mozilla.org/en-US/firefox/. Usually the user would want and expect to stay at the same page. Reproducible: Always
I expect this to be a caching issue: I remember writing the code to keep you on the same page when you log in, based on the referer. Maybe we should add the ?to= variable to the link in the top right corner automatically on every page.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
What page did you login on?
Any add-on page (https://addons.mozilla.org/en-US/firefox/addon/*) will do this.
Target Milestone: --- → 3.x (triaged)
Target Milestone: 3.x (triaged) → 3.2
Wil could you take a look at this?
Assignee: nobody → clouserw
Wenzel's idea in comment 1 seemed like the easiest way to implement this.
Attachment #291779 - Flags: review?(laura)
Why do you not check for a redirect loop anymore? Is that case caught anywhere else?
(In reply to comment #6) > Why do you not check for a redirect loop anymore? Is that case caught anywhere > else? > preg_match("/(:\/\/|developers|editors|localizers|admin|users|\r|\n)/" will catch a redirect loop back to the login page. Are there other loops?
Ah, there's "users" in there. I must have overseen that. Apart from that, the patch looks fine to me.
(In reply to comment #8) > Ah, there's "users" in there. I must have overseen that. Apart from that, the > patch looks fine to me. And instead of the Germanism "overseen" I meant "overlooked" of course ;)
Comment on attachment 291779 [details] [diff] [review] Add "to" variable to login/logout links works for me
Attachment #291779 - Flags: review?(laura) → review+
landed in r8749. thanks
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Keywords: push-needed
Keywords: push-needed
It doesn' work for me yet. If I'm logged out and go to https://addons.mozilla.org/de/firefox/developers, I'm immidiately forwarded to https://addons.mozilla.org/de/firefox/users/login?to=%2Fdevelopers, which is what I expect. But then, I'm redirected to https://addons.mozilla.org/de/firefox/, instead of being redirected to https://addons.mozilla.org/de/firefox/developers, where I wanted to go initially. If this is, in fact, a different bug, I can open another one, if you want?
(In reply to comment #13) > It doesn' work for me yet. If I'm logged out and go to > https://addons.mozilla.org/de/firefox/developers, I'm immidiately forwarded to > https://addons.mozilla.org/de/firefox/users/login?to=%2Fdevelopers, which is > what I expect. But then, I'm redirected to > https://addons.mozilla.org/de/firefox/, instead of being redirected to > https://addons.mozilla.org/de/firefox/developers, where I wanted to go > initially. > > If this is, in fact, a different bug, I can open another one, if you want? > That's bug 408984
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: