Describe the bug
As a developer, while trying some images in the newsletter templates I don't see the image in development mode.
To Reproduce
Steps to reproduce the behavior:
- Sign in as admin
- Go to Newsletterrs in admin panel
- Click on New newsletter
- Click on Use this template in Image, text and Call To Action button template
- Fill the form, sent the newsletter
- See the preview
- See that there isn't the uploaded image
Expected behavior
To see the images
Mind that this is also happening in other places, for instance the logo in the template with the preview. This can be reproduced with
- Sign in as admin
- Go to /admin/organization/appearance/edit
- Upload a logo
- Go to Newsletterrs in admin panel
- Click on New newsletter
- Click on Use this template in any template
- Fill the form, sent the newsletter
- See the preview
- See that there isn't the uploaded logo
Screenshots

Extra data (please complete the following information):
- Decidim Version: v0.27.0.dev
- Decidim installation: development_app
Additional context
The problem is that we're not providing the port in the URL
This is on
|
newsletter.template.images_container.attached_uploader(:main_image).url(host: organization.host) |
- but we should see others places that would probably have this same bug with
$ grep -r "host:" decidim-* |grep attached_uploader
Describe the bug
As a developer, while trying some images in the newsletter templates I don't see the image in development mode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To see the images
Mind that this is also happening in other places, for instance the logo in the template with the preview. This can be reproduced with
Screenshots
Extra data (please complete the following information):
Additional context
The problem is that we're not providing the port in the URL
This is on
decidim/decidim-core/app/cells/decidim/newsletter_templates/image_text_cta_cell.rb
Line 53 in d6e4977
$ grep -r "host:" decidim-* |grep attached_uploader