Issue #1493398 by stewart.adam (again): Fix root cause; form's action attribute gets reset during AJAX refresh