conditionally setting protocol portion of hostname in pagelist