Defect #16989
Inline images in email does not appear when thumbnail macro is used.
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Email notifications | |||
Target version: | 2.5.2 | |||
Resolution: | Fixed | Affected version: |
Description
Redmine v2.5.1
When using
{{thumbnail(filename.png)}}in a comment, the email sent to notify related users does not show the image. The <img> source starts with /attachments.
This is because relative url is used in thumbnail macro when processing the text.
To fix this, we should use the url_for argument :only_path => false, so that the generated urls are absolute.
The fix is in the patch and we are using it confidently in our system.
Related issues
History
#1
Updated by Go MAEDA about 8 years ago
Confirmed the problem with Redmine 2.5.1 and this patch addresses the problem.
#2
Updated by Toshi MARUYAMA about 8 years ago
- Target version set to 2.5.2
#3
Updated by Go MAEDA about 8 years ago
Related to #2770.
The patch attached on this issue cannot display images on non-public projects.
#4
Updated by Toshi MARUYAMA about 8 years ago
- Tracker changed from Patch to Defect
#5
Updated by Toshi MARUYAMA about 8 years ago
- Related to Feature #2770: Display of inline attached images in email notification added
#6
Updated by Jean-Philippe Lang almost 8 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Fixed in r13218, urls now include host name.