Category background image returns 404

When I upload a background image to a category the image uploads fine and appears in the category setting page however when viewing the category the link to the URL get munged into a URL that doesn’t exist. eg:

https://cdn.example.com/origin//<bucket>.s3.amazonaws.com/s3/original/1X/43f2764bab2004bd4b32bba411e4d9af97c964ff.jpeg

When it should just be:

https://cdn.example.com/s3/original/1X/43f2764bab2004bd4b32bba411e4d9af97c964ff.jpeg

For context I am using S3 for uploads and an S3 CDN. I am on Discourse version v1.8.0.beta12 +89.

Steps to re produce

  1. Upload a category image
  2. View catgory with browser console open
  3. See 404 appear with weird URL path
2 Likes

Have images worked at all since you enabled s3 cdn url?

1 Like

I just pushed a fix :strawberry:

https://github.com/discourse/discourse/commit/a7f337fa93fe8f39ea3014a4593994e046abd434

6 Likes

This topic was automatically closed after 23 hours. New replies are no longer allowed.