I have an online configuration editor placed here. The configuration editor is made as a single-page file, i.e. an index.html
file, which is hosted via the link.
I would like to be able to link to this configuration editor in a way that triggers a download of the index.html
file upon clicking the link - instead of displaying it in the browser.
I was hoping to achieve this via below - but it seems to not work with an index.html
file. Any suggestions how to resolve this via HTML or simple Javascript code?
<a href="https://[url]/index.html" download="editor">download here</a>