I've used unsplash API to display photos. when I click on a photo, it shows the photo in a modal and under there is a download button. When I click on that button, it doesn't download the image but instead shows the photo in that tab in the biggest resolution it is available. How do I make that download button actually download the photo?
<a href={photo.links.download} download>Download</a> //this doesn't work to download the photo