When we have a CDN defined, we should be leveraging that for various image assets (e.g. logo url, logo small url) that are relative URLs
e.g.: logo_url='/uploads/default/original/1X/5b5cc13aa92459bb084ca1485bca80c480bfa6f0.gif'
The discussion revolves around ensuring that site logos, such as logo_url and logo small url, utilize the CDN when one is configured. supermathie notes that these relative URLs are not using the CDN, even though other uploads do. zogstrip and nbianca investigate the issue, with nbianca confirming the bug and submitting a fix via pull request #6698. gingerman corroborates the issue, pointing out that while CDN URLs are used for images in posts, they are not applied to site logos. They also reference a past feature allowing custom image links, which could have been a workaround. HAWK links to a related meta discussion on logo UI changes. gingerman clarifies that a text box is only a temporary solution, and the core issue is being addressed by the team.
When we have a CDN defined, we should be leveraging that for various image assets (e.g. logo url, logo small url) that are relative URLs
e.g.: logo_url='/uploads/default/original/1X/5b5cc13aa92459bb084ca1485bca80c480bfa6f0.gif'
Where do you see that exactly?
sjcthree for example - the site logos were uploaded during the wizard - I haven’t changed them.
@nbianca can you make sure the images in the site settings use the CDN whenever they’re pointing at local images?
I tried reproducing this with latest-version and v1.9.0 (had to cherry-pick a6c589d8). My CDN was provided by a local Minio instance.
The code also looks fine as it uses the same logic for other uploads.
@supermathie, have you seen it reproducing recently?
I haven’t set up any new sites recently, but I’ll re-run the wizard on a site and try it.
I just tried this with latest discourse version on a new site.
image uploads for logos only use the s3 urls instead of given s3_cdn url. (but S3 cdn url is correctly picked up in image uploads within a post)
Also, discourse used to have a text box under the logo images where we can fill a custom image link. That was quite useful. Even in this case, we could have manually updated the CDN url if there is a text box.
@hawk thanks for the note. I am part of the conversations there.
I am actually looking for a fix / way to get the s3_cdn url in logos. Having a text box, is just a temporary fix.
Thank you for your report, @gingerman. I had another look and found the culprit.
I submitted a pull request to fix the issue and the changes will be merged soon.