urlTo function

Returns a url that links to a DocObject name.