handle relative protocol urls