Fix that the location is not getting updated when navigating to the login

refs #7163