Redirect to actual page after login, fixes #5679