Fixes bug 889025 - Made login redirect to the previous page. r=peterbe