Fix form submission URL to preserve the document ID