Login redirects to home page instead of page I was on

From the email sent today, I clicked through to this post. I wasn't logged in, so I did so, but then I found myself on the home page. It would be much nicer if this dumped me back where I was.

(Aside: Is there a way to search only a particular community? I tried to see if this was reported before, but could only figure out how to search everything, which wasn't very useful.)