Change calculation of url for document. make it get?id=<ID>