The $path given to URL:to() method can be an object