Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images in templates #9

Open
pirvudoru opened this issue Mar 15, 2023 · 1 comment
Open

Images in templates #9

pirvudoru opened this issue Mar 15, 2023 · 1 comment

Comments

@pirvudoru
Copy link

Hello,

i am trying to embed an image into the mail template.
I've implemented a custom S3 backend. My problem is that the result HTML contains a relative path. My expectation would be that the mail contains only absolute URLs, being rendered from people's inboxes.
I've tried to modify the UploadedImage model's url method to return an absolute URL instead of a path but still getting a relative path embedded
Am I doing something wrong ?

image

@camertron
Copy link
Owner

Hey @pirvudoru, I think UploadedImage#url isn't actually used anywhere anymore. You'll need to modify your uploader's #url_to method to produce absolute URLs. Can you share the code for your custom S3 backend?

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

No branches or pull requests

2 participants