Skip to content

Fix pictures not loading #18

Merged
moustachu merged 2 commits intoalt/nycfrom
fix/homepage_pictures_not_loading
Jan 29, 2026
Merged

Fix pictures not loading #18
moustachu merged 2 commits intoalt/nycfrom
fix/homepage_pictures_not_loading

Conversation

@BarbaraOliveira13
Copy link

@BarbaraOliveira13 BarbaraOliveira13 commented Dec 10, 2025

🎩 Description

Backport fix for ActiveStorage expiring URLs

image URLs include parameters such as X-Amz-Expires, causing them to expire after several hours/days. When Decidim caches these URLs (homepage cells), users end up with expired URLs and broken images (= 403 errors).

I also rename the file with snake_case to lint the code and fix CI ‎:
lib/tasks/decidim-app.rake‎ -> ‎lib/tasks/decidim_app.rake

✅ What we did from PR #15005
adding public: true to the AWS-S3 storage configuration.
ActiveStorage should now generates stable, non-expiring public URLs.

Testing

Upload an image in an unpublished process
Load the homepage → image loads correctly at first.
Wait several hours/days (or check the URL → it shouldn't contains X-Amz-Expires=).

📌 Related Issues

[NYC] Homepage Pictures not loading
Changing image urls is not taken into account in certain cells #13422

📷 Screenshots

Capture d’écran 2025-12-08 à 14 33 01

Extra information

@BarbaraOliveira13 BarbaraOliveira13 marked this pull request as ready for review December 10, 2025 10:42
@moustachu moustachu merged commit d2503d2 into alt/nyc Jan 29, 2026
7 checks passed
@moustachu moustachu deleted the fix/homepage_pictures_not_loading branch January 29, 2026 08:08
@moustachu moustachu restored the fix/homepage_pictures_not_loading branch January 29, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants