added a follow redirect method for URL. Fixed query so that it searches
types with SHOULD clause instead of MUST.