Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

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

Vote:
 

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.

#253696
Apr 21, 2021 11:18
Vote:
 

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

#253746
Edited, Apr 22, 2021 8:22
Vote:
 

Sanjay

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.

#253805
Apr 23, 2021 8:43
Vote:
 

Did anyone find a solution for this? I'm experiencing the same problem with EpiServer.CMS 12.26.0. Also with restricted files in a rich text editor.

#314351
Dec 18, 2023 14:41
* 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.