Heres is the relevant HTML code:
<form id="1" action="https://hooks.nabu.casa/verylongstringofcharacterforawebhook" method="POST">
<input name="name" value="-------">
<button type="submit" type="button">Add to favorites</button>
</form>
<script>
Upon submit, the action URL is a webhook which ties to home assistant which then run a restful command which passes the data to a nodered endpoint.
The data is then saved in csv file. That seems to work. The weird part is, upon pressing submit/add to favorites, the browser starts a download for a file named
verylongstringofcharacterforawebhook
with a file size of 0mb ie blank.
Im a novice, i know enough to cause myself headaches. I cannot figure this out. Im assuming the browser thinks "/verylongstringofcharacterforawebhook" is a file, rather than a url location.
any guidance would be appreciated.