I have a flask app in which I have a front end html with multiple features.
This front end html template has a "download button" to download a file.
This is how I am triggering a download:
$('#download_excel').attr('onClick',"window.open('/static/excel.xlsx')");
download_excel corresponds to a bottom to download a file. This works fine.
But, if I move my excel.xlsx file to a different folder say "download" and modify the above line to this:
$('#download_excel').attr('onClick',"window.open('/download/excel.xlsx')");
This show no file here: (http://127.1.1.1:5555/download/excel.xlsx)
Why? what is the difference?