- Steve McNiven
When you click a protected file in Sitefinity it will send you over to your login page with a ReturnUrl back to the file, so something to this effect will be the URL
The fundamental issue though is that files are sent through an HttpHandler which can’t do a redirect to somewhere else AFTER it sends you the file through the browser. So while the client does get the file, they’re just staring at a blank page with the login auth route…
The fix is to do a couple things…
- Step 1:You want to detect the return url is a file and send it to an actual internal page to show the download (In this case a “Your file will download in 5 seconds…” thing.
- Step 2: You want to have a Custom MVC widget on that page to handle that file download
So this is a WHOLE lot when it should be an OOTB feature, lets call this a bug, please go upvote it here