More robust destination redir after login, fixes #24