[Controller] Fixed URL encoding when user is required to login.