I have flask app and some href to url which downloads file(.log file), I want to just download that file on click(button href leads to download on that url), instead of opening new page, downloading, closing that page, and mainly refreshing my main index.html? I don't want to force download, because there are situations where it will redirect to normal url( not downloadable one).
Adding the download attribute to the </a> tag should download the file instantly without opening a new tab.
<a href="/path/to/.log" download>