[EXT-144] Fix url_type to allow dashes

backport url_type checking allowance from WP-VIP