Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

At my first login to I noticed the following behaviour:

I came to the MySQL / swap space full page page from Google. As I noticed this to be a Stack Exchange site, I clicked ‘log in’ to vote up the question. After logging in with Stack Exchange OpenID provider, I got the question: Do you wish to share your information with I said ‘Confirm’, but then I got redirected to the start page, not back to the article as, IMHO, it should work.

The browser was Firefox 17.0.1.

The workaround is to go back using the browser history (you stay logged in then), but, IMHO, it’s a minor bug anyhow.

share|improve this question
Do you have such URL?‌​l-swap-space-full if it's missing the "returnurl" parameter it won't know where to return to. – Shadow Wizard Dec 17 '12 at 8:00
The next url from my history looks like that:… There is no returnurl. The issue only happens if you have never came to the site before and have to manually click "confirm" to sign in on open ID. Later on it works normally. – Paramaeleon Dec 17 '12 at 9:07

If you leave the site during login the returnurl is lost and you'll end up on the "default" page from /users/login (which is just /).

For the Stack Exchange OpenId, if you use the embedded form you should be fine (just tested it):

enter image description here
Visit a page not logged in (the link at the bottom and the top are the same)

enter image description here
Click the Stack Exchange button (some extensions and browser settings break this, vanilla browsers should all work)

enter image description here
Log in

enter image description here
Bam, back on the question page

I also did the same flow with a new account (that requires a first-time confirmation), same behavior but with an extra "please confirm" page after "Sign In". Forgot to screen grab it.

The TL;DR, if you land on /users/login with a returnurl set we do send you back to the previous page after login. If you somehow lose returnurl, then we send you to the home page by-design.

share|improve this answer
So are you saying it's by design that anyone who's logging into a new stackexchange site for the first time should loose their returnurl during the login process? I agree with OP, it feels like a bug. User lands on answer from a new SE site, attempts to vote, prompted to login, logs in, prompted to confirm, confirms, sent to home page. Then clicks back until he's on the question, still not logged in! – fpsColton Nov 27 '14 at 1:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .