Hi André
I believe when you are trying to download the file then the URL segment has '/Episerver/CMS/Content' root segment thus you redirected to the login screen.
e.g. http://www.xyz.com/EPiServer/CMS/Content/siteassets/{root-folder}/{sub-folder}/test.pdf
But when you try after removing the '/Episerver/CMS/Content' root segment then hopefully you are able to download the file without getting a login screen and login.
e.g.http://www.xyz.com/siteassets/{root-folder}/{sub-folder}/test.pdf
The url for the pdf document is https:mydomain.com/globalassets/restricted/my-pdf-file.pdf
The file is included in a rich text editor as a link.
I have an episerver solution (v11.2) where i have a folder that is "restricted" so when you want to access it, the member has to login.
It works fine when they try to access the file at first, a login prompt comes up, and you can login.
But after im logged in, and try to access the file, im redirected to the episerver login page. And only when i login there, am i permitted to download the file.
I hope someone have experienced the same, and can help.