I have a custom angular2 (not using visualforce/apex) application which I need in which only community users are able to login to. (Customer Community License).
However, the following URL redirects me to the salesforce login page
<a href="https://ca.naXX.content.force.com/servlet.FileDownload?file=XXXXXXX}" download>
Is there a specific permission I need to enable to allow community user to download files using that URL? The download file is from Notes & Attachments section from a custom object.