Correctly redirect to the referring page when logging in

Created by  Eelco Dolstra  on February 21, 2013
LC64D4PUSQEVB7F6JKIP4HKJUZQN3POCJ5NCTTL3VRX3VT6J4AQQC
Change contents