get the queried_object of an url

get the queried_object of an url