update #url_for_document to use explicit configuration