[misc] /deleteattach/ should not redirect the browser if it is called with ?ajax=1