add support for clean urls for collection documents