we've some files located in the file cabinet, and ...
# suitecommerce
v
we've some files located in the file cabinet, and we are showing the list of these files in one of our SC extensions (2019.2) we want to implement a functionality where when the user clicks on the link to any of these files, they get downloaded on the user's machine we've tried using the download attribute of the <a> tag (with the file URL placed in the href attribute), but it redirects the user to the file's URL within SuiteCommerce (and then displays the error "Page Not Found") how do I disable this internal routing, and simply enable downloading of the file when the user clicks on the link?
s
k
you could on click of the link, open in a new tab, the browser will facilitate the download.
v
Thank you @Steve Goldberg that doc is helpful. 🙂 @Kearobi I will try that out also, thanks 🙂