use protocol from the publicUrl when rendering urls