Pdf and docs in restricted section in media section redirect to episerver login


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.

Apr 21, 2021 11:18

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.


Edited, Apr 22, 2021 8:22


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.

Apr 23, 2021 8:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.