Fixing error when deleting document see BT#6642
Minor - adding form URL.