array ancestors

Description:

Get the current URL's list of ancestors.

Return:

An array of URL objects. The first item will be the site's root URL. The last item will be the current URL's parent.