Added documents to the site query.
Fixed a bug in the URL produced for non-partitioned documents.