Trimm the url to the domain part when "share" feature is used.