connectUrl = location.origin & adjust the path