Unable to download image from lightbox with prevent anons from downloading files enabled

AI 生成的摘要

When the “prevent anons from downloading files” site setting is enabled, the download link below lightboxed images breaks for all users, including logged-in ones, resulting in a “page not found” error. jomaxro reported the issue, and zogstrip confirmed it should work. scombs reproduced the issue and submitted a support request. zogstrip believes the issue will be fixed by @pmusaraj’s PR.

When the prevent anons from downloading files site setting is enabled, the download link below lightboxed images stops working, even for logged in users. Users end up on a generic Oops! That page doesn’t exist or is private., where they have a login button (despite being logged in).

Hmm this should work @zogstrip?

Yup, this should work. Will :mag:

3 个赞

I am able to reproduce this issue and submitted a support request. Let me know if I can help troubleshoot.

1 个赞

Pretty sure it’s going to be fixed by @pmusaraj’s PR

https://github.com/discourse/discourse/pull/7551

5 个赞