Return to previous page after a login redirect. Fixes #48