I generate normal links like: in a web app.
When I click on the link, it
If you are Using HTML5 you can add the attribute 'download' to your links.
http://www.w3schools.com/tags/att_a_download.asp