Fix POST redirect form submit (#5336)

The `submit()` method cannot be invoked on forms without a submit button. This changes it to call the method via the JS prototype, which can be seen as a workaround.

Checked this in Firefox and Chrome. Fixes #5335.
This commit is contained in:
d11n 2023-09-22 08:03:57 +02:00 committed by GitHub
parent b443acd43b
commit eaeb7021d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@
</form>
}
<script type="text/javascript">
document.forms.item(0).submit();
HTMLFormElement.prototype.submit.call(document.forms.item(0));
</script>
<partial name="LayoutFoot" />
</body>